Vidyalelo
Computer Science · Q120

UNIX

Engineering and GATE · Computer Science · question 120

Q120

Which command is used to display all the lines with the string 'sales' from the file empl.lst?

A.
cut sales empl.lst
B.
/sales > empl.lst
C.
grep sales empl.lst
Answer
D.
cat | /sales > empl.lst
E.
None of the above

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board