re: The Unix way... or why you actually want to use Vim VIEW POST

TOP OF THREAD FULL DISCUSSION
re: "Stop Piping Cats" ibm.com/developerworks/aix/library...
 

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.

 

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

code of conduct - report abuse