Skip to main content
Still not fixed in GNU
Source Link
tripleee
  • 8k
  • 2
  • 37
  • 45

With recent versions ofThis unfortunately does not work with GNU coreutils,.

grep -o -c WORD file 

should work.If it works on your platform, it's an elegant and fairly intuitive solution; but (Earlier versions had a bug in this combination of options.)the GNU folks are still thinking.

With recent versions of GNU coreutils,

grep -o -c WORD file 

should work. (Earlier versions had a bug in this combination of options.)

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.

Source Link
tripleee
  • 8k
  • 2
  • 37
  • 45

With recent versions of GNU coreutils,

grep -o -c WORD file 

should work. (Earlier versions had a bug in this combination of options.)