Using Perl as a stream editor on standard inputEdit
Removing spaces from the standard input, echoing to standard output
echo -n "foo bar baz bing bong boom" | perl -pe "s/ //g"
Output
echo -n "foo bar baz bing bong boom" | perl -pe "s/ //g"
foobarbazbingbongboom