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 #!/ Bin sh do?
What is awk good for?
What does this command do,"$more readme.txt“?
What does pipe () return?
How do I run a whois command?
What is the difference between cat command and more command?
Explain command to show the space allocation of files?
What is “chmod” command?
What does grep v grep do?
What are the commands in UNIX to list the files in a Directory?
What is the command to find maximum memory taking process on the server?
What is awk command used for?
What does this command do? Cat food 1 > kitty
What is the use of sed command in unix?
Which command is used to delete all files in the current directory and all its sub-directories?