English, asked by naragamraghavendra, 1 month ago

how to get the no. of lines with a pattern(this question

Answers

Answered by Sly01
23

\large\color{purple}\underline{\tt{\underline{\tt{\boxed{ᎪΝՏᏔᎬᎡ}}}}}

  • 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