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
What is the significance of the 'tee' command?
What is the unix command to confirm a remote host is alive or not?
What do know about tee command and its usage?
What is the difference between cat command and more command?
How do I search for a file in unix command?
How do I run a whois command?
What is s and g in sed command?
What is the size of time_t?
What is updatedb?
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)?
Is ‘du’ a command? If so, what is its use?
Explain the terms ‘system calls’ and ‘library functions’ with respect to unix commands?
Which command is used to copy files?
Does cp command overwrite files?
What is the comma to show the space allocation of files?