To replace all whitespace with single spaces pipe the text through:
|
1 |
tr -s [[:space:]] " " |
To replace all whitespace with single spaces pipe the text through:
|
1 |
tr -s [[:space:]] " " |
Talk with a senior engineer for practical recommendations—no obligation.
Reliable Penguin provides managed web hosting, systems administration, website and server migrations, and expert consulting.
Submit the form—or for immediate service call 866-649-7984.
One Response
Yes!!! Exactly what I needed to parse some of ls’s output. Thank you VERY much.