2 ms·
> cat beef.txt | grep "lasagna" What's wrong with > grep "lasagna" beef.txt ?
by snag 4y ago
> cat beef.txt | grep "lasagna"
What's wrong with
> grep "lasagna" beef.txt
?
- rascul 4y agosort 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.
- madacol 4y agoIt has a similar learning curve, but less functionality