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 find $ai_serual resolved path by using unix
What is the difference between awk and grep?
Which command is used to find whether the system is 32 bit or 64 bit?
Explain ‘library functions’ with respect to unix commands?
How to display no of records in oracle using unix command?
What are the dos commands?
Write a command that will display files in the current directory, in a colored, long format.
Can you explain a little bit about command substitution?
What do know about tee command and its usage?
What are the general commands in using unix os for a beginner?
How do you grep a case insensitive?
What is updatedb?
Is grep faster than awk?
How to use grep command to list find the records of a file containing 10 different strings?
What is unix command line?