I'd like to cut extra spaces from "ps aux" output and replace them with one space. What I do is:
ps axu | sed 's/[ ]+/ /g'
But output seems to be unchanged, I still get too much spaces between tokens.
username 4876 ... <the rest of columns ommitted>
Why this regular expression doesn't match empty space between username and pid?