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 does 'mkdir' command do in UNIX?
Why is shebang used?
How do I run a whois command?
Explain the steps that a shell follows while processing a command.
What are the unix commands?
What happens when we execute a unix command?
Name the various commands that are used for the user information in unix.
Can you explain a little bit about command substitution?
What is the difference between cat command and more command?
How do I clear my terminal history?
Which unix command lists files/folders in alphabetical order?
Is it inbetween or in between?
What do know about tee command and its usage?
Which command is used to find whether the system is 32 bit or 64 bit?
Write a command that will display files in the current directory, in a colored, long format.