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.
Permalink for comment 315941
To read all comments associated with this story, please click here.
RE[3]: what an wonderful tool
by news7os on Wed 28th May 2008 13:13 UTC in reply to "RE[2]: what an wonderful tool"
news7os
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! ;)

Reply Parent Bookmark Score: 1