[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] Search and destroy simplified
- Subject: [ale] Search and destroy simplified
- From: elanda at comstar.net (Ed Landa)
- Date: Tue, 21 Jul 1998 19:26:01 -0400
> I know there has got to be a more elegant way to replace all
> instances of one string with another (rather than using vim) from the
> command line. Can anyone make any suggestions?
Use sed:
***
[elanda at beavis e]$ cat e1
This is a test file. I like test files. They help me
to test programs. Testing is cool.
[elanda at beavis e]$ sed -e "s/test/yowza/g" e1
This is a yowza file. I like yowza files. They help me
to yowza programs. Testing is cool.
[elanda at beavis e]$
***