[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: script to remove blank lines ?



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




Reply to: