adam.nz
about
posts
projects
contact
# awk -F: '{print $NF}' /etc/passwd
Print the last, colon-delimited field of
/etc/passwd
. This works because
NF
is the number of fields (eg.
7
for
/etc/passwd
) and so this is the same as
print $7
.