The command
grep first second third /usr/you/myfile

a) prints lines containing the words first,
second or third from the file /usr/you/myfile
b) searches for lines containing the pattern
first in the files
second, third, and /usr/you/myfile and prints them
c) searches the files /usr/you/myfiel and
third for lines containing
the words first or second and prints them
d) replaces the word first with the word
second in the files third and /usr/you/myfile
e) None of the above

Answer Posted / apurba

Answer is B (searches for lines containing the pattern
first in the files second, third, and /usr/you/myfile and
prints them)

Is This Answer Correct ?    13 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I clear my terminal history?

581


What is the comma to display different lines that are found when compare two files?

593


What does the “echo” command do?

624


What is $0 bash?

646


Describe the zip/unzip command using gzip.

608






Explain command to display different lines that are found when compare two files?

676


How do I open a port?

589


Differentiate cat command from more command.

574


how to sort the content of the file based on numeric values

1250


Explain the steps that a shell follows while processing a command.

681


What is merge command in unix?

942


What is awk used for?

616


Why is grep called grep?

777


How do I search for text in vi?

584


Explain the terms ‘system calls’ and ‘library functions’ with respect to unix commands?

638