Linked by Thom Holwerda on Tue 27th May 2008 13:08 UTC, submitted by Ward D
Permalink for comment 315867
To read all comments associated with this story, please click here.
To read all comments associated with this story, please click here.





Member since:
2005-07-17
First, thanks for the nice AWK tips there. I should learn more AWK.
I'm still using only cut, sed, tr, etc.... I'm working mostly on Windows (which I do not like much) but that's my job - so cygwin on the help.
As for your example for cut and white spaces, here is how it can be solved:
cut --help | sed -r "s/[ ]+/ /g" | cut "-d " -f 2-
I guess sed can be used to replace two or more spaces to one, and then preprocess...