Next: Programs Exercises, Previous: Miscellaneous Programs, Up: Sample Programs [Contents][Index]
awk
programs directly runnable makes
them easier to use. Otherwise, invoke the program using ‘awk
-f …’.
awk
is a pleasant
exercise; awk
’s expressive power lets you write such programs
in relatively few lines of code, yet they are functionally complete
and usable.
awk
’s weaknesses is working with individual
characters. The ability to use split()
with the empty string as
the separator can considerably simplify such tasks.