how to find literal in file and them delete that line

2010-05-09 Thread Fbsd1
I want to search every line in the specified file for a literal and if found then delete that line from the file and save the file all from within a sh type of shell script. Does anyone have a example they would share with me? Thanks. ___ freebsd-que

Re: how to find literal in file and them delete that line

2010-05-09 Thread Alberto Mijares
On Sun, May 9, 2010 at 11:08 PM, Fbsd1 wrote: > I want to search every line in the specified file for a literal and if found > then delete that line from the file and save the file all from within a sh > type of shell script. man(1) sed Regards Alberto Mijares

Re: how to find literal in file and them delete that line

2010-05-09 Thread Fbsd1
Alberto Mijares wrote: On Sun, May 9, 2010 at 11:08 PM, Fbsd1 wrote: I want to search every line in the specified file for a literal and if found then delete that line from the file and save the file all from within a sh type of shell script. man(1) sed Regards That makes no sense to me.

Re: how to find literal in file and them delete that line

2010-05-09 Thread Sahil Tandon
On Mon, 10 May 2010, Fbsd1 wrote: > Alberto Mijares wrote: > >On Sun, May 9, 2010 at 11:08 PM, Fbsd1 wrote: > >>I want to search every line in the specified file for a literal and if found > >>then delete that line from the file and save the file all from within a sh > >>type of shell script. > >

Re: how to find literal in file and them delete that line

2010-05-09 Thread Fbsd1
Sahil Tandon wrote: On Mon, 10 May 2010, Fbsd1 wrote: Alberto Mijares wrote: On Sun, May 9, 2010 at 11:08 PM, Fbsd1 wrote: I want to search every line in the specified file for a literal and if found then delete that line from the file and save the file all from within a sh type of shell scr

Re: how to find literal in file and them delete that line

2010-05-09 Thread b. f.
>Alberto Mijares wrote: >> On Sun, May 9, 2010 at 11:08 PM, Fbsd1 wrote: >>> I want to search every line in the specified file for a literal and if found >>> then delete that line from the file and save the file all from within a sh >>> type of shell script. >> >> >> man(1) sed >> >> Regards >> >T

Re: how to find literal in file and them delete that line

2010-05-09 Thread Fbsd1
b. f. wrote: Alberto Mijares wrote: snip It would make sense if you read the sed(1) and re_format(7) manpages. They may be a pain at first, but they are used often and can make your life a lot easier. There are also a lot of tutorial on the web, with many useful examples, e.g.: http://sed.so

Re: how to find literal in file and them delete that line

2010-05-09 Thread Matthew Seaman
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 10/05/2010 04:38:25, Fbsd1 wrote: > I want to search every line in the specified file for a literal and if > found then delete that line from the file and save the file all from > within a sh type of shell script. > > Does anyone have a example the