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 / brijmohan
None of the option will work.
Because "grep first second third" this command will search
for the same pattern and but it should grep "first second
third" instead of grep first second third.
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Why is awk called awk?
What does this command do? Cat food 1 > kitty
What is grep in bash?
Differentiate cat command from more command.
How can you see the command line history?
What is $0 bash?
What is the use of sed command in unix?
Enumerate some of the most commonly used network commands in unix?
What are reported commands?
How do I search for text in vi?
What is the pipe command?
What are some command words?
Is command prompt unix?
How do you grep recursively?
What are the differences among a system call, a library function, and a unix command?