Re: only output the nth line

2010-05-13 Thread Boyd Stephen Smith Jr.
TOFU fixed. Please trim your replies to only the required context. On Thursday 13 May 2010 11:34:53 Jozsi Vadkan wrote: > 2010. 05. 13, csütörtök keltezéssel 11.04-kor Boyd Stephen Smith Jr. ezt > > írta: > > On Thursday 13 May 2010 10:49:22 Jozsi Vadkan wrote: > > > 2010. 05. 12, szerda keltezé

Re: only output the nth line

2010-05-13 Thread Sjoerd Hardeman
Op 13-05-10 18:34, Jozsi Vadkan schreef: >> I think that perhaps there is some language barrier. >> >> Your original post indicates that you want lines 1, 2, 4 and no others >> output. >> "i want only output the first, second, and fourth line" >> >> Your most recent post says that is "the proble

Re: only output the nth line

2010-05-13 Thread Jozsi Vadkan
oops, typo I wanted to say that it only outputs the first, second, and fourht line _once_ so the 8th, etc lines are not in the output sorry:D 2010. 05. 13, csütörtök keltezéssel 11.04-kor Boyd Stephen Smith Jr. ezt írta: > On Thursday 13 May 2010 10:49:22 Jozsi Vadkan wrote: > > 2010. 05. 12, s

Re: only output the nth line

2010-05-13 Thread Boyd Stephen Smith Jr.
On Thursday 13 May 2010 10:49:22 Jozsi Vadkan wrote: > 2010. 05. 12, szerda keltezéssel 12.25-kor Hugo Vanwoerkom ezt írta: > > Jozsi Vadkan wrote: > > > I have a file: > > > And i want to only output the first, second, and fourth line to another > > > file. > > > > h...@debian:~$ sed -n '1,2p;4p'

Re: only output the nth line

2010-05-13 Thread Jozsi Vadkan
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: > > > > > > > >

Re: only output the nth line

2010-05-12 Thread Hugo Vanwoerkom
Jozsi Vadkan wrote: I have a file: And i want to only output the first, second, and fourth line to another file. The: sed -n '1,2p;4p' file.txt h...@debian:~$ sed -n '1,2p;4p' file.txt daemon 1): 0 ii sed4.1.5-8The GNU sed stream editor Hugo --

Re: only output the nth line

2010-05-12 Thread Tzafrir Cohen
On Wed, May 12, 2010 at 06:58:57PM +0200, 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 > > doesn't work. > > What magic do i need for it? :D > > Thanks..:\ Works just fine

Re: only output the nth line

2010-05-12 Thread Mike Bird
On Wed May 12 2010 09:58:57 Jozsi Vadkan wrote: > sed -n '1,2p;4p' file.txt > > doesn't work. Works for me in Lenny. What output do you see? What version of sed do you have? --Mike Bird -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble

Re: only output the nth line

2010-05-12 Thread Aioanei Rares
Cross-posting ain't nice, Jozsi... -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/4beae142.7050...@gmail.com

only output the nth line

2010-05-12 Thread Jozsi Vadkan
I have a file: cat file.txt daemon 1): 596 0 0 1 0 0 bin 2): 12 0 0 1 0 0 sys 3): 0 0 0 0 0 0 And i want to only output the first, second, and fourth line to another file. The: sed -n '1,2p;4p' file.txt doesn't work. What magic do i need for it? :D Thanks..:\ -- To UNSUBSCRIBE, email to