how to get the no. of lines with a pattern(this question
Answers
Answered by
23
- 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. The output below shows us that the matches are found on lines 10423 and 10424.
Similar questions
English,
22 days ago
English,
22 days ago
Social Sciences,
1 month ago
Computer Science,
1 month ago