I want to remove all the white spaces from a given text file. Is there any shell command available for this ? Or, how to use sed for this purpose.
sed
I wa
Try this:
sed -e 's/[\t ]//g;/^$/d'
(found here)
The first part removes all tabs (\t) and spaces, and the second part removes all empty lines
\t