blank lines/lines with spaces (how to remove) 
Author Message
 blank lines/lines with spaces (how to remove)

How can I remove a line that is blank or has spaces ???

Cheers
--
Kev



Fri, 16 May 2003 03:00:00 GMT  
 blank lines/lines with spaces (how to remove)

Quote:

> How can I remove a line that is blank or has spaces ???

> Cheers
> --
> Kev

This was discussed recently - there are several
answers, but the way I normally do it is:

gawk 'NF' file

HTH,

Tristan.



Fri, 16 May 2003 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. remove blank lines before lines beginning with string

2. Removing data between blank lines

3. Want to remove multiple occurances of blank line from a file

4. remove blank lines

5. Text Widget: removing blank lines

6. inserting a blank line in a file

7. to insert a blank line

8. adding blank lines to text file

9. print contents up to blank line

10. datafile has blank lines

11. Blank lines

12. line beginning with a blank

 

 
Powered by phpBB® Forum Software