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 is grep and how do you use it?
What is awk used for?
What is the command to compare two files in unix?
Which command is used to find whether the system is 32 bit or 64 bit?
Why is awk called awk?
Which unix command to make a new directory?
What are the unix commands?
Explain ‘system calls’ with respect to unix commands?
What is grep r?
What are the commands in UNIX to list the files in a Directory?
Is command prompt unix?
What is unix command line?
Who wrote grep?
What does the command ' $who | sort –logfile > newfile' do?
Describe the usage and functionality of the command rm –r * in unix?