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 316366
To read all comments associated with this story, please click here.
RE[4]: what an wonderful tool
by fernandotcl on Sat 31st May 2008 05:37 UTC in reply to "RE[3]: what an wonderful tool"
Member since:

Use the "-F" flag to specify the separator in awk.

In my experience, awk can always replace cut with ease, but the opposite isn't always true. Still, cut is lighter on resources and also more readable (the operation you're performing seems more explicit to me).

Reply Parent Score: 1