SHΛRK@lemmy.zip to Programmer Humor@programming.dev · 5 天前Linux Catlemmy.zipexternal-linkmessage-square68linkfedilinkarrow-up1396arrow-down18file-text
arrow-up1388arrow-down1external-linkLinux Catlemmy.zipSHΛRK@lemmy.zip to Programmer Humor@programming.dev · 5 天前message-square68linkfedilinkfile-text
minus-squareranzispa@mander.xyzlinkfedilinkarrow-up11arrow-down1·4 天前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.
minus-squarea_non_monotonic_function@lemmy.worldlinkfedilinkarrow-up2·3 天前I don’t know why anybody would disagree with this. It’s a very clean way of putting it.
minus-squaredan@upvote.aulinkfedilinkarrow-up10arrow-down2·4 天前It wouldn’t be at the end, since you’d still be piping into program program <file | grep | cut
minus-squareDigit@lemmy.todaylinkfedilinkEnglisharrow-up1·7 小时前These <file things must be for different shells than the ones I use.
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 tooThese
<filethings must be for different shells than the ones I use.Oh, thanks! Didn’t know that
Thanks - I didn’t know this either!