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 rmdir command?
What is the behavioural difference between cmp and diff commands?
What is difference between grep and find command in unix?
Can you enlist some commonly used network commands?
Why is awk called awk?
What command is used to switching between users in unix?
What are the commands in UNIX to list the files in a Directory?
What do chmod command do?
What is the comma to show the space allocation of files?
What is the use of the command 'ls -x chapter[1-5]' ?
What is the general format of unix command syntax?
What is the pipe command?
Write a command to display a file’s contents in various formats?
What is grep r?
Differentiate cmp command from diff command.