This unfortunately does not work with GNU coreutils.
grep -o -c WORD file If it works on your platform, it's an elegant and fairly intuitive solution; but the GNU folks are still thinking.
This unfortunately does not work with GNU coreutils.
grep -o -c WORD file If it works on your platform, it's an elegant and fairly intuitive solution; but the GNU folks are still thinking.