@merari42@lemmy.world to Microblog Memes@lemmy.worldEnglish • 1 year agoA dog is not the opposite of a catlemmy.worldimagemessage-square110fedilinkarrow-up1686arrow-down127
arrow-up1659arrow-down1imageA dog is not the opposite of a catlemmy.world@merari42@lemmy.world to Microblog Memes@lemmy.worldEnglish • 1 year agomessage-square110fedilink
minus-square@SpaceNoodle@lemmy.worldlinkfedilinkEnglish5•1 year agocat is for concatenating files, so the opposite would be something that breaks a stream up into multiple files.
minus-square@joranvar@feddit.nllinkfedilinkEnglish8•edit-21 year agoSo, split. Edit: although there’s also tac, which could fit the bill as well.
minus-square@joranvar@feddit.nllinkfedilinkEnglish2•1 year agoHeh, no, but they do have a nice set of man pages and other documentation online. I prefer NixOS. Easier keeping track of configuration, easier rolling back of (and experimentation with) new stuff.
minus-square@joranvar@feddit.nllinkfedilinkEnglish3•1 year agoI mean… it’s nice that it exists and all, but I can’t really think of many useful usecases.
minus-square@rc__buggy@sh.itjust.workslinkfedilinkEnglish2•1 year agoI think I only ever used it in an intro to shell scripting where we (almost) recreated the function of tail
minus-square@joranvar@feddit.nllinkfedilinkEnglish2•1 year agoSomething like tac | head | tac, I guess? Yes, that’s a valid use case indeed :)
minus-square@tetris11@lemmy.mllinkfedilinkEnglish1•1 year agotac is a real command and does exactly what you think it is
cat is for concatenating files, so the opposite would be something that breaks a stream up into multiple files.
So, split.
Edit: although there’s also tac, which could fit the bill as well.
Oh, you use Arch?
Heh, no, but they do have a nice set of man pages and other documentation online. I prefer NixOS. Easier keeping track of configuration, easier rolling back of (and experimentation with) new stuff.
Hah, forgot about tac
I mean… it’s nice that it exists and all, but I can’t really think of many useful usecases.
I think I only ever used it in an intro to shell scripting where we (almost) recreated the function of tail
Something like
tac | head | tac
, I guess? Yes, that’s a valid use case indeed :)tac
is a real command and does exactly what you think it is