Warum denn immer cat *.txt | grep bla ?

Kommentieren Feb 15 2010 .txt, .json, .md

Warum muss immer die Katze (cat) die Sachen zusammensuchen nur damit der Crepe (grep) dies nicht zu machen braucht ?

cat \*.log | grep hallo

Ist doch total unnötig.

grep hallo *.log

geht doch auch.

Hier ist nun auch ein Performance-Beweis:

The savings of a fraction of a second isn’t the point. It’s just a silly way to go about doing it. It’s not the end of the world, just plain old inefficient logic at work. Watching someone do this is almost as annoying as seeing them run “rm -rf” when they’re deleting a single file.