TR / CUT

This will return the first section of the column /etc/passwd

cat /etc/passwd | tr ":" " " | cut -d " " -f 1

Last updated