hey... that was quick !! thanks stephan... Stephan wrote:... >grep -v ^$ <filename> > >This gets you all lines with "something" between the line's beginning (^) >and its end ($). Or rather "without nothing" between beginning and >end (-v is grep's negation option). > i did it like this uing awk..... cat m | awk '$1 !="" { print $1 }' but i believe ur method would be faster !! thanks venu