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 / thajudeen
answer is E none of the above as it will search the pattern
as a single pattern "first second third"
Is This Answer Correct ? | 2 Yes | 2 No |
Post New Answer View All Answers
Which command is used to restrict incoming messages?
Can you enlist some commonly used network commands?
Explain command to display different lines that are found when compare two files?
What is awk used for?
Name the unix command to find how many days the server has been up.
What is the use of awk command in unix?
Describe the zip/unzip command using gzip.
How do I run a bash script?
What command is used to check the current users?
What does the command ' $who | sort –logfile > newfile' do?
What is the comma to show the space allocation of files?
Which command is used to copy files?
What is merge command in unix?
Is it inbetween or in between?
Give the command for finding the current date.