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 difference between cmp and diff commands?
What is the command to find hidden files in the current directory?
What are reported commands?
What are filter commands in unix?
What is awk used for?
Is ‘du’ a command? If so, what is its use?
What command is used to switching between users in unix?
Write a command to display a file’s contents in various formats?
What is the functionality of a top command?
What is the comma to show the space allocation of files?
What's a command word?
What are awk commands?
What is grep command in unix with examples?
What are grep patterns?
What is the use of tee command?