Linked by Thom Holwerda on Tue 27th May 2008 13:08 UTC, submitted by Ward D
Thread beginning with comment 315941
To view parent comment, click here.
To read all comments associated with this story, please click here.
To view parent comment, click here.
To read all comments associated with this story, please click here.
RE[4]: what an wonderful tool
by Doc Pain on Thu 29th May 2008 20:49
in reply to "RE[3]: what an wonderful tool"
You can "squeeze" spaces with tr (this might be GNUism, i'm not sure), which is what I do:
echo "blah blah" | tr -s ' ' | cut -f2 -d' '
echo "blah blah" | tr -s ' ' | cut -f2 -d' '
Then it would be BSDism, too, because it works in FreeBSD, as I have just checked.
Nice article. AWK! AWK!
Nice sound, at least if Americans and Englishmen pronounce it correctly. :-) In Germany, awk is pronounced "ar way kar" letter-wise - shorter than "ay doubleyou kay" of course... "This is Ay Doubleyou Kay Radio 100.4 MHz, you're listening to Doctor Frasier Crane..." (see Focus Shift n - 1)... :-)
It's just sad HTML eats up all our pretty spaces so we can't demonstrate how nicely it works. It would be great to have <pre>...</pre> enabled here...






Member since:
2008-05-28
You can "squeeze" spaces with tr (this might be GNUism, i'm not sure), which is what I do:

echo "blah blah" | tr -s ' ' | cut -f2 -d' '
Nice article. AWK! AWK!