3 ms·
Why are you catting a single file into grep?
by cbd1984 12y ago
Why are you catting a single file into grep?
- WestCoastJustin 12y agoMuscle memory. I find myself doing this all the time too, it is just a universal way of filtering things down, so I don't worry about it too much. Like when using lsof, sure you can use filters via lsof itself, but sometimes you just use "lsof |grep" because it is easier than looking up the correct option. The performance to muscle memory tradeoff is worth it.
- juliangregorian 12y agoI think GP may be referring to the "unnecessary use of cat"