merari42@lemmy.world to Microblog Memes@lemmy.worldEnglish · 3 months agoA dog is not the opposite of a catlemmy.worldimagemessage-square122fedilinkarrow-up1684arrow-down127
arrow-up1657arrow-down1imageA dog is not the opposite of a catlemmy.worldmerari42@lemmy.world to Microblog Memes@lemmy.worldEnglish · 3 months agomessage-square122fedilink
minus-squareSpaceNoodle@lemmy.worldlinkfedilinkEnglisharrow-up5·3 months agocat is for concatenating files, so the opposite would be something that breaks a stream up into multiple files.
minus-squarejoranvar@feddit.nllinkfedilinkEnglisharrow-up8·edit-23 months agoSo, split. Edit: although there’s also tac, which could fit the bill as well.
minus-squarejoranvar@feddit.nllinkfedilinkEnglisharrow-up3·3 months agoI mean… it’s nice that it exists and all, but I can’t really think of many useful usecases.
minus-squarerc__buggy@sh.itjust.workslinkfedilinkEnglisharrow-up2·3 months agoI think I only ever used it in an intro to shell scripting where we (almost) recreated the function of tail
minus-squarejoranvar@feddit.nllinkfedilinkEnglisharrow-up2·3 months agoSomething like tac | head | tac, I guess? Yes, that’s a valid use case indeed :)
minus-squarejoranvar@feddit.nllinkfedilinkEnglisharrow-up2·3 months 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-squaretetris11@lemmy.mllinkfedilinkEnglisharrow-up2arrow-down1·3 months 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.
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 :)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.
tac
is a real command and does exactly what you think it is