Fedora And Red Hat System Administration/Awk Scripting

Awk - A Data Driven Programming Language
Under Construction

Using Awk at the Command Line
Under Construction

Parsing User Information from data
/usr/local/bin/bash-users.awk

BEGIN { FS = ":" USER_COUNT = 0 } /:\/bin\/bash$/ { ++USER_COUNT print $1 } END { print USER_COUNT " bash users." }
 * 1) !/bin/awk -f

Usage:

[user@station user]$ getent passwd | bin/bash-users.awk root jkupferer mesa user 4 bash users.