|  |  | 
| EnderUNIX tipsMail to My Friend , Home Page[ UNIX ] "Output between lines" - Ülkü SAYILAN - (2004-06-19 17:22:54) [3144] Output between lines To print the contents between two lines in a file in UNIX : sed -n 'from lineno , to lineno p' filename i.e to print data from line 2 to 5 of 'text' file sed -n '2,5p' text Mail to My Friend , Home Page |  |