I'd like to know how cat passwd | awk -F':' '{printf $1}'
works. cat /etc/passwd
is a list of users with ID and folders from root to the current user (I don't know if it has something to do with cat passwd
). -F
is some kind of input file and {printf $1}
is printing the first column. That's what I've search so far but seems confusing to me.
Can anyone help me or explain to me if it's right or wrong, please?