Lượng Tiger
New member
How delete all blank lines in Unix?
Answer
Simple solution is by using grep (GNU or BSD) command as below.
Answer
Simple solution is by using grep (GNU or BSD) command as below.
- Remove blank lines (not including lines with spaces). grep . file.txt.
- Remove completely blank lines (including lines with spaces). grep “S” file.txt.