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 ctrl d?
What is unix command?
What is the function of grep command in unix?
Is there any method to erase all files in the current directory, along with its all sub-directories, by using only one command?
What is time_t?
What is the general format of unix command syntax?
What is sed awk grep?
What are file commands?
What command will change your prompt to myprompt?
What is the unix command to confirm a remote host is alive or not?
What is command substitution?
What is the use of awk command in unix?
What does the command '$ls | wc –l > file1' do?
Why is shebang used?
What is the behavioural difference between cmp and diff commands?