/regular expression/ {statement(s)}

/regular expression/ {statement(s)}

awk -F: ‘ /ksh$/ { print $1 } ‘ /etc/passwd

This example is useful for finding those user accounts that have /bin/ksh as its startup program.

Previous slide Next slide Back to the first slide View Graphic Version