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
Write a command that will allow a unix system to shut down in 15 minutes, after which it will perform a reboot.
Who command in unix?
Is there any method to erase all files in the current directory, along with its all sub-directories, by using only one command?
What is in grep command?
How do I search for a file in unix command?
What are the general commands in using unix os for a beginner?
What is awk used for?
What do chown command do?
Which command is used to create a directory?
What is the size of time_t?
What does find command return in unix?
What command is used to check the current users?
What are some command words?
Which command will print your home directory on screen?
What is grep in bash?