Linked by Thom Holwerda on Tue 27th May 2008 13:08 UTC, submitted by Ward D
General Development AWK is one of the most common UNIX tools to process text-based data in either files or datastreams. Written by Alfred Aho, Peter Weinberger, and Brian Kernighan, AWK "extensively uses the string datatype, associative arrays (that is, arrays indexed by key strings), and regular expressions." ComputerWorld interviewed Alfred Aho.
Thread beginning with comment 316109
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 UTC in reply to "RE[3]: what an wonderful tool"
Doc Pain
Member since:
2006-10-08

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' '


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...

Reply Parent Bookmark Score: 3