Remove empty/blank lines
How to remove empty/blank lines from a file in
Unix (including spaces)?
The -i means it will edit the file in-place.
sed -i '/^$/d' file.txt
How to remove empty/blank lines from a file in
Unix (including spaces)?
The -i means it will edit the file in-place.
sed -i '/^$/d' file.txt