shark_byte@lemmy.zip to Programmer Humor@programming.dev · 13 hours agoLinux Catlemmy.zipexternal-linkmessage-square42fedilinkarrow-up1298file-text
arrow-up1298external-linkLinux Catlemmy.zipshark_byte@lemmy.zip to Programmer Humor@programming.dev · 13 hours agomessage-square42fedilinkfile-text
minus-squareranzispa@mander.xyzlinkfedilinkarrow-up9·6 hours 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-squaredan@upvote.aulinkfedilinkarrow-up7·6 hours agoIt wouldn’t be at the end, since you’d still be piping into program program <file | grep | cut
minus-squarejxk@sh.itjust.workslinkfedilinkarrow-up6·6 hours 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.
It wouldn’t be at the end, since you’d still be piping into
programprogram <file | grep | cutAnd
<file program | grep | cutworks tooThanks - I didn’t know this either!
Oh, thanks! Didn’t know that