3 ms·
$ grep ^ERROR | wc -l
by wtetzner 11y ago
$ grep ^ERROR | wc -l
- ColinWright 11y agoAbsolutely. I noticed that soon after I typed the other, but decided to leave it. Usually I'm passing the results to something else so it doesn't matter, but you're right, that produces just the number we want.