SHΛRK@lemmy.zip to Programmer Humor@programming.dev · 8 days agoLinux Catlemmy.zipexternal-linkmessage-square65linkfedilinkarrow-up11file-text
arrow-up11external-linkLinux Catlemmy.zipSHΛRK@lemmy.zip to Programmer Humor@programming.dev · 8 days agomessage-square65linkfedilinkfile-text
minus-squareranzispa@mander.xyzlinkfedilinkarrow-up0·8 days agoFair, 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.
minus-squarea_non_monotonic_function@lemmy.worldlinkfedilinkarrow-up0·6 days agoI don’t know why anybody would disagree with this. It’s a very clean way of putting it.
minus-squaredan@upvote.aulinkfedilinkarrow-up0·8 days agoIt wouldn’t be at the end, since you’d still be piping into program program <file | grep | cut
minus-squarejxk@sh.itjust.workslinkfedilinkarrow-up0·8 days agoAnd <file program | grep | cut works too
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 | cutThis gets more complicated if the file is at the end of the command.
I don’t know why anybody would disagree with this. It’s a very clean way of putting it.
It wouldn’t be at the end, since you’d still be piping into
programprogram <file | grep | cutAnd
<file program | grep | cutworks tooOh, thanks! Didn’t know that