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


h...@debian:~$ sed -n '1,2p;4p' file.txt
daemon
1):
0

ii  sed                    4.1.5-8                The GNU sed stream editor

Hugo


--
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/hseoac$iq...@dough.gmane.org

Reply via email to