On Mon, 15 Sep 2003 15:03:42 -0400
"Keith Birchfield" <[EMAIL PROTECTED]> wrote:

> Hello all, and thanks for previous help! :-)
> 
> Can anyone give me a csh cheat to copy a file with a specific string
> replaced with another?
> 
> For example
> copy foo1.txt to foo2.txt and replace each instance of "blue" with "red"

sed -e 's/blue/red/g'  foo1.txt > foo2.txt

Regards,
Sean


-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://www.redhat.com/mailman/listinfo/redhat-list

Reply via email to