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
What does sed command do in unix?
Is command prompt unix?
Describe the zip/unzip command using gzip.
Which command can you use to find the currently running process in unix server?
What is merge command in unix?
What is the use of the tee command?
What do chown command do?
How does shebang work?
why metadb requires a seperate slice to create Solaris volume manager
What do chgrp command do?
Explain the steps that a shell follows while processing a command.
Who wrote grep?
What is time_t?
Describe the usage and functionality of the command rm –r * in unix?
What is .sh file?