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
What are filter commands in unix?
What do chmod, chown, chgrp commands do?
Which command can you use to find the currently running process in unix server?
What is ‘ps’ command for?
Why is shebang used?
What is the general format of unix command syntax?
What is awk good for?
What does pipe () return?
What is ctrl d?
Who invented grep?
Can you explain a little bit about command substitution?
Describe the zip/unzip command using gzip.
What is the size of time_t?
Enumerate some of the most commonly used network commands in unix?
What happens when we execute a unix command?