Command line tips

Remove multiple whites spaces

sed 's/^ *//;s/ *$//;s/ \{1,\}/ /g' inputFile > outputFile

s/^ *// deletes spaces at the start of the line
s/ *$// deletes spaces at the end of the line

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License