Tuesday, July 12, 2005

substitute strings within files in UNIX

To change the string `EZZ` to `EZ` (this would look for the backquote, followed by EZZ followed by backquote)
sed 's/`EZZ`/`EZ`/' static.dat > static1.dat

A simple example would be:

sed 's/abc/def/ static.dat > static1.dat


0 Comments:

Post a Comment

<< Home