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 do I clear my terminal history?
What is the comma to display different lines that are found when compare two files?
What does the “echo” command do?
What is $0 bash?
Describe the zip/unzip command using gzip.
Explain command to display different lines that are found when compare two files?
How do I open a port?
Differentiate cat command from more command.
how to sort the content of the file based on numeric values
Explain the steps that a shell follows while processing a command.
What is merge command in unix?
What is awk used for?
Why is grep called grep?
How do I search for text in vi?
Explain the terms ‘system calls’ and ‘library functions’ with respect to unix commands?