$ cat etc_passwd.awk
BEGIN{
FS=":";
print "Name UserID GroupID HomeDirectory";
}
{
print $1" "$3" "$4" "$6;
}
END {
print NR,"Records Processed";
}
$ awk -F':' '{print $3,$4;}' /etc/passwd
41 41
100 101
101 102
103 7
105 111
110 116
111 117
112 119
$ awk -F':' 'BEGIN{OFS="=";} {print $3,$4;}' /etc/passwd
41=41
100=101
101=102
103=7
105=111
110=116
111=117
112=119