12.05.2010 18:58, Jozsi Vadkan: > And i want to only output the first, second, and fourth line to another > file. > > sed -n '1,2p;4p' file.txt sed -n '1p;2p;4p' file.txt -- Regards mks