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

What is the significance of the 'tee' command?

596


What is the unix command to confirm a remote host is alive or not?

579


What do know about tee command and its usage?

586


What is the difference between cat command and more command?

599


How do I search for a file in unix command?

546






How do I run a whois command?

598


What is s and g in sed command?

557


What is the size of time_t?

645


What is updatedb?

586


Write a command that will find all text files in a directory such that it does not contain the word "amazing" in any form (that is, it must include the words amazing, amazing, or amazing)?

954


Is ‘du’ a command? If so, what is its use?

633


Explain the terms ‘system calls’ and ‘library functions’ with respect to unix commands?

638


Which command is used to copy files?

556


Does cp command overwrite files?

620


What is the comma to show the space allocation of files?

558