Subj : Re: gnu utils To : MeaTLoTioN From : 0zZ-U Date : Tue Jan 11 2022 11:13:54 Me> When trying to get some info from a text file, or command output people Me> tend to do something like; Me> Me> $ cat somefile.txt | grep something | wc -l Me> Me> This would spit out the contents of somefile.txt, pipe it into grep to Me> filter out just "something" and then count how many lines contain that Me> "something", perfectly a normal thing to do, but it's so bloated and Me> irks me to no end. Instead of this overly bloated command one-liner, Me> this can all be achieved in just a simple one command; Me> Me> $ grep -c something somefile.txt I think I've been guilty on doing that on the occasion. Completely forgetting that I can just simple feed grep the text file...but in my defense I do not make YT or any other video tutorials LOL But yes, I agree, any one that "teaches" this stuff should know better. Oh and BTW , I've started eliminating the empty space right after the pipe character. I blame that on you ;) ..:[ Exit stage left ]:. --- Mystic BBS v1.12 A45 2020/02/18 (Linux/64) * Origin: The Bottomless Abyss BBS * bbs.bottomlessabyss.net (1337:3/106) .