TL56
1
I am attempting to delete blank lines in my file and I've used this command:
sed '/^$/d' $file > $file.fixed
all this seems to do is copy the file and not delete the blank lines located at the end of the file. Any assistance would be greatly appreciated.
one way:
{ rm FILE; sed -e '...' > FILE; } < FILE
TL56
3
unfortunately that still did not do the trick.
TL56
4
I found this command and it worked for me:
sed '/^ *$/d'
Thank you very much for responding and your assistance.
1 Like