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 to find $ai_serual resolved path by using unix

1028


What is the difference between awk and grep?

561


Which command is used to find whether the system is 32 bit or 64 bit?

631


Explain ‘library functions’ with respect to unix commands?

604


How to display no of records in oracle using unix command?

589






What are the dos commands?

650


Write a command that will display files in the current directory, in a colored, long format.

685


Can you explain a little bit about command substitution?

610


What do know about tee command and its usage?

589


What are the general commands in using unix os for a beginner?

577


How do you grep a case insensitive?

540


What is updatedb?

586


Is grep faster than awk?

559


How to use grep command to list find the records of a file containing 10 different strings?

645


What is unix command line?

609