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
How to use grep command to list find the records of a file containing 10 different strings?
What is in grep command?
How do I search for a file in unix command?
What does the command '$ls | wc –l > file1' do?
What do chmod command do?
Why is grep called grep?
What are reported commands?
What is the use of awk command in unix?
What are bash commands?
Which command is used to kill the last background job?
What is “chmod” command?
Which unix command to make a new directory?
Which command will print your home directory on screen?
What does find command return in unix?
What is the difference between grep and grep?