Print nth field in /etc/passwd using awk and cut
To print 4th field using awk:
awk -F: '{ print $4 }' /etc/passwd
same, using cut:
cut -d: -f4 /etc/passwd