[Discuss] how to filter out odd/even rows from a text file ?

J.Bakshi bakshi12 at gmail.com
Sat Dec 13 01:05:34 PST 2008


Dear list,

I am searching a way to filter out odd lines ( as well as even lines ) from a 
file and store it another file. Suppose a file has 25 lines . hence 1,3,5 
should be collected as odd. Is there any linux command or readily available 
script to do this ? kindly show me tha way.

Thanks and regards


More information about the Discuss mailing list