Hi monks,
I know how to grep the index of an array for a pattern, but can I have a grep that can give me the index of the pattern, as well as the number of pattern occurance (in any form, not limited to array)?
(I think I see something on regex counting the number of occurance of a pattern, but I am not so clear for its syntax...may be somebody can give me some hint?)
In reply to Grep reutrn the occurance of a pattern by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |