eXTReMe Tracker
Jan 122015

In order to replace unknown number of multiple spaces occurring within the line with a single space, run the following in bash:

sed -n 's/ \+/ /gp'  input


sed -n 's/  */ /gp'

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>



This site uses Akismet to reduce spam. Learn how your comment data is processed.