I tried searching in here, but it's seems there is only commands that helps to delete blank lines in text file.
Is there a linux bash script that I can execute to delete blank lines in any text file I want ?
I tried searching in here, but it's seems there is only commands that helps to delete blank lines in text file.
Is there a linux bash script that I can execute to delete blank lines in any text file I want ?
Replace file.txt with the name and path to your file and run this command in the shell:
sed -i '/^$/d' file.txt