Translate

Friday 20 July 2018

SED Examples

Today let us discuss about SED .

SED - Streams Editor

Scenario 1:

Replace a string with another string using sed

Syntax

sed 's/string/stringtoreplace/' filename.txt

Example

sed '/s/SQL/ORACLE/' db.txt

Output

Before









After

No comments:

Post a Comment