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


Please Help Members By Posting Answers For Below Questions

Why is awk called awk?

577


What does this command do? Cat food 1 > kitty

978


What is grep in bash?

586


Differentiate cat command from more command.

578


How can you see the command line history?

585






What is $0 bash?

647


What is the use of sed command in unix?

601


Enumerate some of the most commonly used network commands in unix?

618


What are reported commands?

566


How do I search for text in vi?

586


What is the pipe command?

576


What are some command words?

565


Is command prompt unix?

583


How do you grep recursively?

557


What are the differences among a system call, a library function, and a unix command?

567