Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Oct 2003 07:12:23 -0800 (PST)
From:      Viktor Lazlo <viktorlazlo@telus.net>
To:        Xpression <admin@atenas.cult.cu>
Cc:        FreeBSD-questions <questions@freebsd.org>
Subject:   Re: Editing a file with bash...
Message-ID:  <20031029071026.H1933@d66-183-123-52.bchsia.telus.net>
In-Reply-To: <001101c39e25$03cf1f30$0801a8c0@bloodlust>
References:  <001101c39e25$03cf1f30$0801a8c0@bloodlust>

next in thread | previous in thread | raw e-mail | index | archive | help


On Wed, 29 Oct 2003, Xpression wrote:

> Hi list, can I edit a file and delete a line by searching any parameter with
> bash ??? Thanks...

sed '/searchstring/d' file1 >file2

Cheers,

Viktor



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