bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to remove a specific line in a file


From: Paul Jarc
Subject: Re: How to remove a specific line in a file
Date: Tue, 01 May 2007 11:59:04 -0400
User-agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.4 (gnu/linux)

Matthew Woehlke <address@hidden> wrote:
> It seems like there should be a way to delete the first match in pure 
> sed, but I didn't figure it out in the few seconds testing I did.

sed '/foo/{x;/^$/d;}'


paul




reply via email to

[Prev in Thread] Current Thread [Next in Thread]