• SpaceNoodle@lemmy.world
    link
    fedilink
    English
    arrow-up
    5
    ·
    5 个月前

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

        • joranvar@feddit.nl
          link
          fedilink
          English
          arrow-up
          3
          ·
          5 个月前

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

          • rc__buggy
            link
            fedilink
            English
            arrow-up
            2
            ·
            5 个月前

            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
              2
              ·
              5 个月前

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

        • joranvar@feddit.nl
          link
          fedilink
          English
          arrow-up
          2
          ·
          5 个月前

          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.