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
I think you may use sed to wipe out the space while not losing some infomation like changing to another line.
cat hello.txt | sed '/^$/d;s/[[:blank:]]//g'