Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 20 Dec 2008 23:28:16 -0800
From:      Corey Chandler <lists@sequestered.net>
To:        Gary Kline <kline@thought.org>
Cc:        FreeBSD Mailing List <freebsd-questions@FreeBSD.ORG>
Subject:   Re: Sed question
Message-ID:  <494DF010.5060803@sequestered.net>
In-Reply-To: <20081221053407.GA87868@thought.org>
References:  <20081221053407.GA87868@thought.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Gary Kline wrote:
> 	how can i delete, say, lines 8,9,and 10 from 200 files
> 	using sed?  Is it
>
> 	sed '8,10d'< file> newfile
> 	or is there a better way?
>
>   
I'd stick it in a for loop using inplace editing, but yes. :-)




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