awk -F: '{print $1}' /etc/passwd

Category: Text Processing

awk -F: '{print $1}' /etc/passwd

Set colon as field separator and print first field

Tells awk to split each line using : as the field separator (-F), then prints the first field. Used to extract usernames from /etc/passwd.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.