Skip to main content
added 40 characters in body
Source Link
Cascabel
  • 501.7k
  • 75
  • 385
  • 319

How about this:

fgrep -o f <file> | wc -l 

Note: besides beingBesides much easier to remember/duplicate and customize, this is about 10%three times (sorry, edit! botched the first test) faster than Vereb's answer.

How about this:

fgrep -o f <file> | wc -l 

Note: besides being much easier to remember/duplicate and customize, this is about 10% faster than Vereb's answer.

How about this:

fgrep -o f <file> | wc -l 

Note: Besides much easier to remember/duplicate and customize, this is about three times (sorry, edit! botched the first test) faster than Vereb's answer.

Source Link
Cascabel
  • 501.7k
  • 75
  • 385
  • 319

How about this:

fgrep -o f <file> | wc -l 

Note: besides being much easier to remember/duplicate and customize, this is about 10% faster than Vereb's answer.