question on grep

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Is there a command line option on grep that says
count ALL occurances on a line not just the first one???

echo "jerry jerry" | grep -c jerry

only returns 1 and not 2.
Looking at the man page I did not see anything like that.

Thanks,

Jerry
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux