Tim's Lemmy
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
merari42@lemmy.world to Microblog Memes@lemmy.worldEnglish · 9 months ago

A dog is not the opposite of a cat

lemmy.world

external-link
message-square
112
fedilink
1
external-link

A dog is not the opposite of a cat

lemmy.world

merari42@lemmy.world to Microblog Memes@lemmy.worldEnglish · 9 months ago
message-square
112
fedilink
  • rc__buggy@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    0
    ·
    edit-2
    9 months ago

    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 …”?

    • SpaceNoodle@lemmy.world
      link
      fedilink
      English
      arrow-up
      0
      ·
      9 months ago

      cat is for concatenating files, so the opposite would be something that breaks a stream up into multiple files.

      • tetris11@lemmy.ml
        link
        fedilink
        English
        arrow-up
        0
        ·
        9 months ago

        tac is a real command and does exactly what you think it is

      • joranvar@feddit.nl
        link
        fedilink
        English
        arrow-up
        0
        ·
        edit-2
        9 months ago

        So, split.

        Edit: although there’s also tac, which could fit the bill as well.

        • SpaceNoodle@lemmy.world
          link
          fedilink
          English
          arrow-up
          0
          ·
          9 months ago

          Oh, you use Arch?

          • joranvar@feddit.nl
            link
            fedilink
            English
            arrow-up
            0
            ·
            9 months ago

            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.

        • rc__buggy@sh.itjust.works
          link
          fedilink
          English
          arrow-up
          0
          ·
          9 months ago

          Hah, forgot about tac

          • joranvar@feddit.nl
            link
            fedilink
            English
            arrow-up
            0
            ·
            9 months ago

            I mean… it’s nice that it exists and all, but I can’t really think of many useful usecases.

            • rc__buggy@sh.itjust.works
              link
              fedilink
              English
              arrow-up
              0
              ·
              9 months ago

              I think I only ever used it in an intro to shell scripting where we (almost) recreated the function of tail

              • joranvar@feddit.nl
                link
                fedilink
                English
                arrow-up
                0
                ·
                9 months ago

                Something like tac | head | tac, I guess? Yes, that’s a valid use case indeed :)

    • Karyoplasma@discuss.tchncs.de
      link
      fedilink
      English
      arrow-up
      0
      ·
      8 months ago

      Hmm, maybe pwd?

    • zero_spelled_with_an_ecks@programming.dev
      link
      fedilink
      English
      arrow-up
      0
      ·
      9 months ago

      How about tac which prints lines but last to first.

    • Trigger2_2000@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      0
      ·
      9 months ago

      pwd Print Working Directory

      • jaybone@lemmy.world
        link
        fedilink
        English
        arrow-up
        0
        ·
        9 months ago

        There’s pushd where the opposite is clearly popd.

    • jaybone@lemmy.world
      link
      fedilink
      English
      arrow-up
      0
      ·
      9 months ago

      It prints to stdout. I’d say the opposite is read, which reads from stdin.

Microblog Memes@lemmy.world

microblogmemes@lemmy.world

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: [email protected]

A place to share screenshots of Microblog posts, whether from Mastodon, tumblr, Twitter X, KBin, Threads or elsewhere.

Created as an evolution of White People Twitter and other tweet-capture subreddits.

Rules:

  1. Please put at least one word relevant to the post in the post title.
  2. Be nice.
  3. No advertising, brand promotion or guerilla marketing.
  4. Posters are encouraged to link to the toot or tweet etc in the description of posts.

Related communities:

  • [email protected]
  • [email protected]
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 145 users / day
  • 941 users / week
  • 2.8K users / month
  • 7.16K users / 6 months
  • 0 local subscribers
  • 7.61K subscribers
  • 2.39K Posts
  • 87.7K Comments
  • Modlog
  • mods:
  • Ready! Player 31@lemmy.world
  • aeronmelon@lemmy.world
  • needanke@feddit.org
  • UI: unknown version
  • BE: 0.19.8
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org