Grep Count Matches
To print count matching lines we can use -c, --count argument with grep command.
Example
$ seq 100 | grep -c 5
19Source: Linuxize
Last updated
To print count matching lines we can use -c, --count argument with grep command.
$ seq 100 | grep -c 5
19Source: Linuxize
Last updated