$ cat etc_passwd.awk BEGIN{ FS=":"; print "Name UserID GroupID HomeDirectory"; } { print $1" "$3" "$4" "$6; } END { print NR,"Records Processed"; }