Simple AWK programs enclosed in single quotes can be typed and executed right at the Unix prompt. For example, the program
awk ‘BEGIN { FS = “:” } { print $1 | “sort” }’ /etc/passwd
This program prints a sorted list of the login names of all users.
May 21, 2010
by Mohan Cheema
0 comments
April 28, 2010
by Mohan Cheema
0 comments