375
Linux Cat (thelemmy.club)

ahh

~$ which cat
you are viewing a single comment's thread
view the rest of the comments
[-] ranzispa@mander.xyz 10 points 23 hours ago

Fair, but in general I find it way more useful to use cat for piping.

In most cases I'll do something like

cat file | program
cat file | program | grep
cat file | program | grep | cut

This gets more complicated if the file is at the end of the command.

[-] dan@upvote.au 8 points 23 hours ago

It wouldn't be at the end, since you'd still be piping into program

program <file | grep | cut
[-] jxk@sh.itjust.works 13 points 23 hours ago

And <file program | grep | cut works too

[-] ranzispa@mander.xyz 3 points 22 hours ago

Oh, thanks! Didn't know that

[-] dan@upvote.au 1 points 19 hours ago

Thanks - I didn't know this either!

this post was submitted on 03 Aug 2026
375 points (98.0% liked)

Programmer Humor

32608 readers
650 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 3 years ago
MODERATORS