Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 May 2010 00:24:11 -0400
From:      Sahil Tandon <sahil@FreeBSD.org>
To:        freebsd-questions@freebsd.org
Subject:   Re: how to find literal in file and them delete that line
Message-ID:  <20100510042411.GD32627@magic.hamla.org>
In-Reply-To: <4BE7869B.1060406@a1poweruser.com>
References:  <4BE77FB1.2050607@a1poweruser.com> <AANLkTik0z3vwkm1vW2F4JHqyVpVOAVllopt-w9C8J9KQ@mail.gmail.com> <4BE7869B.1060406@a1poweruser.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 10 May 2010, Fbsd1 wrote:

> Alberto Mijares wrote:
> >On Sun, May 9, 2010 at 11:08 PM, Fbsd1 <fbsd1@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@FreeBSD.org>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100510042411.GD32627>