bug-gnu-utils
[Top][All Lists]
Advanced

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

Re: a question of sed


From: Paolo Bonzini
Subject: Re: a question of sed
Date: Mon, 15 Sep 2014 16:35:14 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.0

Il 15/09/2014 09:36, runhao chen ha scritto:
> address@hidden:/home/roger/work/shell# sed -n -i '3d' emp.txt
> address@hidden:/home/roger/work/shell# cat emp.txt
> address@hidden:/home/roger/work/shell#
> *******************************************************************end of
> log
> 
> I just want to delete the third line " what happened?!", and after the
> command, all lines were deleted.
> 
> did it suppose to be ?

Yes, you should not have included -n.

Paolo



reply via email to

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