To replace all whitespace with single spaces pipe the text through:
tr -s [[:space:]] " "
Posted on December 11, 2009 by admin in Misc
Yes!!! Exactly what I needed to parse some of ls’s output. Thank you VERY much.