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 display no of records in oracle using unix command?
Differentiate cat command from more command.
Is it inbetween or in between?
What does 'mkdir' command do in UNIX?
Why is awk called awk?
What is the function of grep command in unix?
What are bash commands?
What is the use of find command in unix?
Write a command to display a file’s contents in various formats?
Enlist some filename manipulation commands in unix.
What is a bash command?
Who command in unix?
What is the pipe command?
What is unix command?
How does shebang work?