- Displaying the count of number of matches We can find the number of lines that matches the given string/pattern AND - Prefix each line of output with the 1-based line number within its input file.