Below command helps me to remove only blank or empty lines from a file. Bit it not removes a line with white space.
sed '/^$/d' filename > filename.temp
sed '/^ *$/d' filename > filename.tmp
filename.tmp > filename
This will remove blank lines and lines with only white spaces from a file.
Latest Post: How to decrease or increase the Credit limit of Vodafone postpoid number? Our newest member: urekog
Recent Posts Unread Posts Tags
Forum contains no unread posts
Forum contains unread posts
Mark all read
Please Login or Register