What could be the purpose of using this command?

The user smith executes the following command:
awk -F: ‘/bash$/ {nlines++; print $1;} END {print “\n”, nlines}’ /etc/passwd.
What could be the purpose of using this command?

The user smith executes the following command:
awk -F: ‘/bash$/ {nlines++; print $1;} END {print “\n”, nlines}’ /etc/passwd.
What could be the purpose of using this command?

A.
to print all lines in /etc/passwd that ends with bash

B.
to print the name of all normal users in /etc/passwd

C.
to print and count the names of the users who use the bash shell

D.
to print the total number of lines in /etc/passwd that ends with bash

Explanation:



Leave a Reply 0

Your email address will not be published. Required fields are marked *