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
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
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.
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.
> >
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
>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
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
-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