[solved]-Given File Correctly Use Grep Find Many Lines Contain Word Unix Grep Unix Filename B Grep Q39011912
Given a file, which of the below correctly use grep to find howmany lines contain the word ‘UNIX’?
a grep ‘UNIX’ filename
b grep -c ‘UNIX’ filename
c grep –c ‘UNIX’ filename
d Both b and c
The sed filter uses the extended regular expression set (ERE)with proper option.
True or False
The print command (p) used by sed outputs both the selectedlines and also all the lines in the file, causing the selectedlines to appear twice.
True or False
What is the default field separator for sortcommand?
a a space character
b a tab character
c a newline character
d whitespace (i.e. any number of spaces)
The sort command supports sorting
a alphabetically
b in reverse order
c by number
d all the above
Which of the following is not a shell filter program?
a sort
b cat
c date
d grep
Expert Answer
Answer to Given a file, which of the below correctly use grep to find how many lines contain the word ‘UNIX’? a grep ‘UNIX’ fi… . . .
OR

