From: hrishy (hrishys at domain yahoo.co.uk)
Date: Fri 17 Aug 2001 - 14:51:47 IST
thsi works tooooooo so now i ahve choices
a big muahhhhhhhhhhhhhh for the help :-D
--- Stephen_Reilly at domain dell.com wrote: > sed '/^$/d' file
> will strip blank lines, do you want to strip out
> lines with only whitespace
> in them as well ? If so use something like sed -e
> '/^$/d' -e '/^[ \t]*$/d'
> Though I'm not sure if I have that one right off
> hand ...
> Could use grep as well, same patterns but not as
> much fun.
> -----Original Message-----
> From: hrishy [mailto:hrishys at domain yahoo.co.uk]
> Sent: 17 August 2001 11:25
> To: ilug at domain linux.ie
> Subject: [ILUG] striping file from blank lines
> could anybody tell me how to strip blank lines from
> file.i dont want to use perl
> Do You Yahoo!?
> Get your free at domain yahoo.co.uk address at
> or your free at domain yahoo.ie address at
> Irish Linux Users' Group: ilug at domain linux.ie
> http://www.linux.ie/mailman/listinfo/ilug for
> (un)subscription information.
> List maintainer: listmaster at domain linux.ie
Do You Yahoo!?
Get your free at domain yahoo.co.uk address at http://mail.yahoo.co.uk
or your free at domain yahoo.ie address at http://mail.yahoo.ie
This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:11:43 GMT