Rathish.Kumar wrote:
> How to get the count of matches, if the pattern matches more than
> once in a single line. 

For example by using an additional tool:

$ echo nine one one | grep -o ne | wc -l
3

Benno


  • Query, Rathish.Kumar
    • Re: Query, [the number of singular matches] Benno Schulenberg

Reply via email to