• SpaceNoodle@lemmy.world
    link
    fedilink
    English
    arrow-up
    5
    ·
    19 days ago

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

    • joranvar
      link
      fedilink
      English
      arrow-up
      8
      ·
      edit-2
      19 days ago

      So, split.

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

        • joranvar
          link
          fedilink
          English
          arrow-up
          3
          ·
          19 days 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
            2
            ·
            19 days ago

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

            • joranvar
              link
              fedilink
              English
              arrow-up
              2
              ·
              19 days ago

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

        • joranvar
          link
          fedilink
          English
          arrow-up
          2
          ·
          19 days 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.