单选题:Which line below would count the total number of lines with the
Which line below would count the total number of lines with the word " Goodbye" in /var/log/messages?@[C](1)
A. wc -l ' Goodbye /var/log/messages '
B. wc -l /var/log/messages | grep ' Goodbye '
C. cat /var/log/messages | grep ' Goodbye ' | wc -l
D. cat /var/log/messages | grep ' Goodbye ' | wc -c
A.wc -l ' Goodbye /var/log/messages '
B.wc -l /var/log/messages | grep ' Goodbye '
C.cat /var/log/messages | grep ' Goodbye ' | wc -l
D.cat /var/log/messages | grep ' Goodbye ' | wc -c
答案:C
A. wc -l ' Goodbye /var/log/messages '
B. wc -l /var/log/messages | grep ' Goodbye '
C. cat /var/log/messages | grep ' Goodbye ' | wc -l
D. cat /var/log/messages | grep ' Goodbye ' | wc -c
A.wc -l ' Goodbye /var/log/messages '
B.wc -l /var/log/messages | grep ' Goodbye '
C.cat /var/log/messages | grep ' Goodbye ' | wc -l
D.cat /var/log/messages | grep ' Goodbye ' | wc -c
答案:C