On Tue, Aug 10, 1999 at 12:25:03PM +0530, venu wrote: > hi all shell scripters ! > > if in a file I have say 10 lines and some of them are blank lines ,how do i > remove the blank lines ? > > cherio > venu > Well, one way would be to 'cat <file> | tr -s '\n' > <newfile>', IIRC.
Mike [Private mail welcome, but no need to CC: me on list replies.] -- Michael Merten <[EMAIL PROTECTED]> ---> Debian GNU/Linux Fan -- http://www.debian.org ---> CenLA-LUG Founder -- http://www.angelfire.com/la2/cenlalug -- Driving in Texas is simple. For the first 100 miles you swerve to avoid jackrabbits. For the second 100 miles you hit whatever jackrabbits get in the way. After that you chase off into the brush after them.