Strip Whitespace Out Of A File

June 6th, 2013

sed is a wonderful tool. Just used this command today to remove most of the whitespace from a file.

sed 's/ //g' test.txt > test2.txt

WordPress - Entries (RSS) and Comments (RSS) - © 2011 Ben Dauphinee