Answer :
- awk -d : ‘/user/ { print $4 }’ /etc/passwd
Explanation :
The awk command first needs to know which field separator should be used. This is specified with the -F : option. Then, it needs to specify a string that it should look for, which is /user/ . To indicate that the fourth field of a matching file should be printed, you need to include the { print $4 } command.