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 [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]
Archive: http://lists.debian.org/[email protected]

Reply via email to