Which grep command will match only one line?

You need to use grep to search for specific log entries. Given the following three log entries, which grep command will match only one line? Assume that every pattern matches at least one line.
Jun 16 01:46:18 hostname pumpd[10]: PUMP: got an offer
Jun 17 21:52:28 hostname kernel: SCSI subsystem driver Revision: 1.00
Jul 20 11:09:01 hostname /USR/SBIN/CRON[1800]: (mail) CMD runq
A. grep “hostname [^]*[A-Z]*:”
B. grep “Ju[I-Z][0-9].*:.1”
C. grep “hostname,*[pumpd]*[10]”
D. grep “[0-9]:[1-8]* host.*(.*)”
E. grep “US*[^]]*]*:”

Download Printable PDF. VALID exam to help you PASS.

Leave a Reply

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


The reCAPTCHA verification period has expired. Please reload the page.