I have an output in a file with the blank spaces like
daily/A3D05180000052121001 30698
daily/A3D05180000052200001 30698
daily/A3D05180000052203001 30698
I need to remove the empty lines and my output should be like
daily/A3D05180000052121001 30698
daily/A3D05180000052200001 30698
daily/A3D05180000052203001 30698
I tried using sed
sed -i -e '/./,$!d' -e :a -e '/^\n*$/{$d;N;ba' -e '}' "$FILESIZE3"
But it did not work out... Can anyone pls help me out on this
grep -v "^$" $OLDNAME > $NEWNAME
? – 0xC0000022L May 19 '20 at 08:50cat -E file
to display the file's content in a way that we can see if empty lines are indeed empty or if they have spaces. – Quasímodo May 19 '20 at 10:40