Jan 20, 2004 #2 SteveR77 Programmer Sep 18, 2000 813 US To find the blank lines - grep '^$' {File name} If you are looking to strip the blank lines out you will need to use either awk or sed. Steve Upvote 0 Downvote
To find the blank lines - grep '^$' {File name} If you are looking to strip the blank lines out you will need to use either awk or sed. Steve
Jan 20, 2004 #3 dickiebird Programmer Feb 14, 2002 758 GB To remove empty lines : sed '/^$/d' filename > newfilename To remove line(s) with just a space : sed '/^ /d' filename > newfilename Dickie Bird (-))) Upvote 0 Downvote
To remove empty lines : sed '/^$/d' filename > newfilename To remove line(s) with just a space : sed '/^ /d' filename > newfilename Dickie Bird (-)))
Jan 21, 2004 #4 PHV MIS Nov 8, 2002 53,708 FR One regular expression for blank lines (not necessary empty): Code: /^[ ]*$/ ^__ Tab char Hope This Help PH. Upvote 0 Downvote
One regular expression for blank lines (not necessary empty): Code: /^[ ]*$/ ^__ Tab char Hope This Help PH.