Re: only output the nth line
yes, that's the problem, it only outputs the first, second, and fourth
line!
ii  sed                                   4.1.5-6
The GNU sed stream editor
Debian Lenny
2010. 05. 12, szerda keltezéssel 12.25-kor Hugo Vanwoerkom ezt írta:
> Jozsi Vadkan wrote:
> > I have a file:
> > 
> <snip>
> > 
> > 
> > And i want to only output the first, second, and fourth line to another
> > file.
> > 
> > The:
> > 
> > sed -n '1,2p;4p' file.txt
> > 
> 
> hugo@debian:~$ sed -n '1,2p;4p' file.txt
> daemon
> 1):
> 0
> 
> ii  sed                    4.1.5-8                The GNU sed stream editor
> 
> Hugo
> 
> 
Reply to: