hello,
i have tried to remove blank lines from a file using korn shell script file.. it doesn't seem to work!
i tried
sed '/^\s*$/d' infile > outfile but that didn't work
i tried
sed 's/ *$//;/^$/d' infile > outfile and that didn't work
i tried
sed '/^s./d' infile > outfile and that didn't work
what can i do? this is a huge file and some blank lines might be spaces? or tabs? how can i know?
thank you