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 command is used to switching between users in unix?
What is the use of awk command in unix?
Name the general commands in using unix os for a beginner?
What is the comma to display different lines that are found when compare two files?
Give the command for finding the current date.
What is the search command in unix?
Describe the zip/unzip command using gzip.
How do you grep recursively?
What is $0 bash?
What is the use of egrep command in unix?
What is grep short for?
Differentiate cmp command from diff command.
What is .sh file?
How do I use grep to find a file?
What is awk command used for?