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

Re: Sed or awk: remove a line from a file



On 28 May 2010 15:27, Andrei Popescu <andreimpopescu@gmail.com> wrote:
> On Fri,28.May.10, 15:19:21, Dotan Cohen wrote:
>
>> sed or awk. But I've been reading sed and awk tutorials for two hours
>> and I cannot figure out how to remove line N from the file without
>> creating a second file. If I'm already going through the hassle of
>> creating then moving a second file then I might as well just edit the
>> file in VIM.
>>
>> Any ideas?
>
> The '-i' option for sed?
>

Thanks, Andrei. You know, I read the manage twice and that just did
not register! Have a great weekend.


-- 
Dotan Cohen

http://gibberish.co.il
http://what-is-what.com


Reply to: