$ time grep bob /usr/share/dict/words > /dev/null
real 0m0.005s
user 0m0.002s
sys 0m0.002s
I prefer:
time grep bob < /usr/share/dict/words > /dev/null
real 0m0.005s
user 0m0.002s
sys 0m0.002s
But I'm not sure why. It's either because I don't have to remember where to put the file argument to grep. Or because it's my go-to 'save a cat' today technique. Or because I'm pretentious.
Hmmm... never realized that
cat
takes more time!That said, where he goes:
I prefer:
But I'm not sure why. It's either because I don't have to remember where to put the file argument to
grep
. Or because it's my go-to 'save acat
' today technique. Or because I'm pretentious.</usr/share/dict/words>
is the most frightening closing tag I think I've ever seen.