Hacker News new | past | comments | ask | show | jobs | submit login

> cat beef.txt | grep "lasagna"

What's wrong with

> grep "lasagna" beef.txt

?




sort also has -u, so there's two unnecessary pipes. The whole thing could be written:

  grep lasagna beef.txt | sort -u
Some people add extra pipes and cat for what they claim is readability. I don't agree that cat and extra pipes is more readable, but to each their own.


It has a similar learning curve, but less functionality




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: