Awk pattern matching

AWK its big ... a full on ProgrammingLanguage really

a GooD place to get more info is in the standard *nix ManCommand

Examples

to make a list of all the users and shell's that are in use on your box (not a verry practical example as there are non user enrtys in your passwd file but...)

cat /etc/passwd | awk -F: ' {print $1 " " $7 }'

Explanation

-F: = use : as the separator ie use -F, for a csv file awk uses a space as standard print = print to StdOut $1 = the first varible found...   " " = a space... well any string $7 = the 7th varible found