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 is the use of find command in unix?
What is the difference between cat command and more command?
Differentiate cat command from more command.
What do know about tee command?
What does pipe () return?
What is the use of finger command?
What are filter commands in unix?
What is the comma to display different lines that are found when compare two files?
What does sed command do in unix?
What is the unix command to confirm a remote host is alive or not?
Which command can you use to find the currently running process in unix server?
Describe the usage and functionality of the command rm –r * in unix?
What is the function of grep command in unix?
How many unix commands are there?
When i run a programm of orphan process. Instead of getting child's parent (ppid)=1 ..i get 1400 and it varies as per system.
How can i findthe right soluion???
My pgm:
#include