merari42@lemmy.world to Microblog Memes@lemmy.worldEnglish · 2 months agoA dog is not the opposite of a catlemmy.worldimagemessage-square108fedilinkarrow-up1678arrow-down126
arrow-up1652arrow-down1imageA dog is not the opposite of a catlemmy.worldmerari42@lemmy.world to Microblog Memes@lemmy.worldEnglish · 2 months agomessage-square108fedilink
minus-squarerc__buggy@sh.itjust.workslinkfedilinkEnglisharrow-up22arrow-down1·edit-22 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·2 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·2 months agotac is a real command and does exactly what you think it is
minus-squarezero_spelled_with_an_ecks@programming.devlinkfedilinkEnglisharrow-up4·2 months agoHow about tac which prints lines but last to first.
minus-squarejaybone@lemmy.worldlinkfedilinkEnglisharrow-up3·2 months agoIt prints to stdout. I’d say the opposite is read, which reads from stdin.
minus-squareTrigger2_2000@sh.itjust.workslinkfedilinkEnglisharrow-up2·2 months agopwd Print Working Directory
minus-squarejaybone@lemmy.worldlinkfedilinkEnglisharrow-up2·2 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.