merari42@lemmy.world to Microblog Memes@lemmy.worldEnglish · 1 year agoA dog is not the opposite of a catlemmy.worldexternal-linkmessage-square101linkfedilinkarrow-up1674arrow-down126
arrow-up1648arrow-down1external-linkA dog is not the opposite of a catlemmy.worldmerari42@lemmy.world to Microblog Memes@lemmy.worldEnglish · 1 year agomessage-square101linkfedilink
minus-squarerc__buggy@sh.itjust.workslinkfedilinkEnglisharrow-up22arrow-down1·edit-21 year 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-squarezero_spelled_with_an_ecks@programming.devlinkfedilinkEnglisharrow-up4·1 year agoHow about tac which prints lines but last to first.
minus-squareSpaceNoodle@lemmy.worldlinkfedilinkEnglisharrow-up4·1 year 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·1 year agotac is a real command and does exactly what you think it is
minus-squarejaybone@lemmy.worldlinkfedilinkEnglisharrow-up3·1 year agoIt prints to stdout. I’d say the opposite is read, which reads from stdin.
minus-squareTrigger2_2000@sh.itjust.workslinkfedilinkEnglisharrow-up2·1 year agopwd Print Working Directory
minus-squarejaybone@lemmy.worldlinkfedilinkEnglisharrow-up2·1 year 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 …”?
How about tac which prints lines but last to first.
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 isIt 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.