How to delete the empty lines from a file in Linux
To delete all empty lines from a file in bash, we can use following command.
sed '/^$/d' filename
To delete all empty lines from a file in bash, we can use following command.
sed '/^$/d' filename