Next: Miscellaneous Programs, Previous: Running Examples, Up: Sample Programs [Contents][Index]
This section presents a number of POSIX utilities implemented in
awk
. Reinventing these programs in awk
is often enjoyable,
because the algorithms can be very clearly expressed, and the code is usually
very concise and simple. This is true because awk
does so much for you.
It should be noted that these programs are not necessarily intended to
replace the installed versions on your system.
Nor may all of these programs be fully compliant with the most recent
POSIX standard. This is not a problem; their
purpose is to illustrate awk
language programming for “real-world”
tasks.
The programs are presented in alphabetical order.
• Cut Program | The cut utility.
| |
• Egrep Program | The egrep utility.
| |
• Id Program | The id utility.
| |
• Split Program | The split utility.
| |
• Tee Program | The tee utility.
| |
• Uniq Program | The uniq utility.
| |
• Wc Program | The wc utility.
|