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

What is the comma to display different lines that are found when compare two files?

593


What is awk used for?

616


What is the first character of the output in ls l command?

631


What is “chmod” command?

564


What command is used to check the current users?

592






Describe the usage and functionality of the command rm –r * in unix?

820


What command will change your prompt to myprompt?

700


What is a command and examples?

583


What is ctrl d?

594


hw will u use awk in replacing cahrs and files

2726


What is the use of the tee command?

598


What does the metacharacter mean?

608


Is grep faster than awk?

557


Explain command to show the space allocation of files?

629


What is the function of grep command in unix?

586