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


Please Help Members By Posting Answers For Below Questions

Which command is used to restrict incoming messages?

592


Can you enlist some commonly used network commands?

600


Explain command to display different lines that are found when compare two files?

676


What is awk used for?

619


Name the unix command to find how many days the server has been up.

600






What is the use of awk command in unix?

581


Describe the zip/unzip command using gzip.

611


How do I run a bash script?

584


What command is used to check the current users?

594


What does the command ' $who | sort –logfile > newfile' do?

770


What is the comma to show the space allocation of files?

560


Which command is used to copy files?

556


What is merge command in unix?

946


Is it inbetween or in between?

581


Give the command for finding the current date.

583