First page Back Continue Last page Overview Graphics
awk, cont'd
You can write entire programs in awk:
- E.g. awk '/error/{print $0; n += 1} END {print n}' myfile.txt [counts and displays lines containing "error" in file]
Like tcsh itself, awk syntax is reminscent of the programing language C.
awk, sed, wildcards, shell variables, stream redirection, and command substitution enable the creation of very sophisticated tcsh scripts...
Notes: