DEV Community

Discussion on: The Unix way... or why you actually want to use Vim

Collapse
 
gypsydave5 profile image
David Wickes • Edited

cat cake

Hmmm... never realized that cat takes more time!

That said, where he goes:

$ 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.

Collapse
 
grahamlyons profile image
Graham Lyons • Edited

</usr/share/dict/words> is the most frightening closing tag I think I've ever seen.