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 / thajudeen
answer is E none of the above as it will search the pattern
as a single pattern "first second third"
| Is This Answer Correct ? | 2 Yes | 2 No |
Post New Answer View All Answers
How do I search for text in vi?
How can we use grep command in unix?
What command is used to switching between users in unix?
What will the following command do?
hw will u use awk in replacing cahrs and files
Explain ‘library functions’ with respect to unix commands?
What is grep r?
What is the command to compare two files in unix?
What is the general format of unix command syntax?
How do I use nslookup?
What do know about tee command?
Which command is used to find whether the system is 32 bit or 64 bit?
Explain how to use grep command to list find the records of a file containing 10 different strings?
Are you in or at the office?
What is rmdir command?