merari42@lemmy.world to Microblog Memes@lemmy.worldEnglish · 3 months agoA dog is not the opposite of a catlemmy.worldexternal-linkmessage-square108fedilinkarrow-up1678arrow-down126
arrow-up1652arrow-down1external-linkA dog is not the opposite of a catlemmy.worldmerari42@lemmy.world to Microblog Memes@lemmy.worldEnglish · 3 months agomessage-square108fedilink
minus-squarerc__buggy@sh.itjust.workslinkfedilinkEnglisharrow-up22arrow-down1·edit-23 months agotee isn’t exactly the opposite of cat but I can’t remember a command that only redirects screen output to a file. What is up, tee? edit: what’s the opposite of “cd …”?
minus-squareSpaceNoodle@lemmy.worldlinkfedilinkEnglisharrow-up4·3 months agocat is for concatenating files, so the opposite would be something that breaks a stream up into multiple files.
minus-squaretetris11@lemmy.mllinkfedilinkEnglisharrow-up2arrow-down1·3 months agotac is a real command and does exactly what you think it is
minus-squarezero_spelled_with_an_ecks@programming.devlinkfedilinkEnglisharrow-up4·3 months agoHow about tac which prints lines but last to first.
minus-squarejaybone@lemmy.worldlinkfedilinkEnglisharrow-up3·3 months agoIt prints to stdout. I’d say the opposite is read, which reads from stdin.
minus-squareTrigger2_2000@sh.itjust.workslinkfedilinkEnglisharrow-up2·3 months agopwd Print Working Directory
minus-squarejaybone@lemmy.worldlinkfedilinkEnglisharrow-up2·3 months agoThere’s pushd where the opposite is clearly popd.
tee isn’t exactly the opposite of cat but I can’t remember a command that only redirects screen output to a file.
What is up, tee?
edit: what’s the opposite of “cd …”?
cat is for concatenating files, so the opposite would be something that breaks a stream up into multiple files.
tac
is a real command and does exactly what you think it isHow about tac which prints lines but last to first.
It prints to stdout. I’d say the opposite is read, which reads from stdin.
Hmm, maybe pwd?
pwd Print Working Directory
There’s pushd where the opposite is clearly popd.