Re: Using SED in a script

2004-02-18 Thread Jack L. Stone
On Tue, 17 Feb 2004, Saint Aardvark the Carpeted wrote: > Jack L. Stone disturbed my sleep to write: > > This would be the steps: > > - grep(1) the new string and pipe to sed(1) ..?? > > - sed(1) to find the old string & replace with the new string in a file. > > Am I on the right track?? > >

Re: Using SED in a script

2004-02-17 Thread Saint Aardvark the Carpeted
Jack L. Stone disturbed my sleep to write: > This would be the steps: > - grep(1) the new string and pipe to sed(1) ..?? > - sed(1) to find the old string & replace with the new string in a file. > Am I on the right track?? I think so, yeah -- something like this should work: #!/bin/s