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