Re: Replace a string inside a file

2003-09-16 Thread Anthony E. Greene
On 15-Sep-2003/15:03 -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? sed file1 -e s/blue/red/ > file2 -- Anthony E. Greene

Re: Replace a string inside a file

2003-09-15 Thread Sean Estabrooks
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

RE: Replace a string inside a file

2003-09-15 Thread Sites, Brad
Keith Birchfield 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" where > foo1.txt contains > apple >

Replace a string inside a file

2003-09-15 Thread Keith Birchfield
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" where foo1.txt contains apple blue syrup green apples blue red grapes grape