How do I grep a specific line number?

How do I grep a specific line number?
Answer
The -n ( or –line-number ) option tells grep to show the line number of the lines containing a string that matches a pattern. When this option is used, grep prints the matches to standard output prefixed with the line number.
 

Tìm kiếm

Back
Top