Global
Guideline
Interviewer and Interviewee Guide
Home
Interview Questions
Online Quiz Tests
Blog
Forum
Contact Us
Close Menu
Copyright © 2005 - 2024. All Rights Reserved
Search
Home
Interviews
Operating System Linux
Search Pattern
Linux Search Pattern Question:
Download Search Pattern PDF
Which option of grep displays the line number as well?
a) -v
b) -l
c) -n
d) -E
Tweet
Share
WhatsApp
Download PDF
Answer:
c) -n
Download Search Pattern PDF
Read All 45 Search Pattern Questions
Previous Question
Next Question
How can you search for blank line in a file?
a) $ grep " " file
b) $ grep "^$" file
c) $ grep [" "] file
d) $ grep [^$] file
What will be printed for the command below?
$ grep -c "^echo" abc
a) The count of lines that do not contain the pattern echo in file abc
b) The count of lines which begin with the pattern echo in file abc
c) The count of lines that ends with the pattern echo in file abc
d) None of the above