how to find literal in file and them delete that line
Sahil Tandon
sahil at FreeBSD.org
Mon May 10 04:24:16 UTC 2010
On Mon, 10 May 2010, Fbsd1 wrote:
> Alberto Mijares wrote:
> >On Sun, May 9, 2010 at 11:08 PM, Fbsd1 <fbsd1 at a1poweruser.com> 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
> >
> That makes no sense to me.
> need example
What makes no sense? The sed(1) man page? Which section in particular
is confusing? And please, explain the rationale for making your port
automatically edit /etc/rc.conf.
--
Sahil Tandon <sahil at FreeBSD.org>
More information about the freebsd-questions
mailing list