• bundes_sheep@lemmy.one
    link
    fedilink
    arrow-up
    0
    ·
    1 year ago

    Are these built to handle pipes? If I bat a file and redirect it to a file, does it work as expected or does it add in the escape sequences for the colors, for example?

    • Phi@feddit.de
      link
      fedilink
      arrow-up
      0
      ·
      edit-2
      1 year ago

      bat foo | bar behaves like cat foo | bar same with > and such.

    • Schmeckinger@feddit.de
      link
      fedilink
      arrow-up
      0
      ·
      1 year ago

      Probably because that’s basically the default license rust projects use and a lot of this stuff is made in rust.

  • jsdz@lemmy.ml
    link
    fedilink
    arrow-up
    0
    ·
    1 year ago

    “bat” seemed interesting, until I remembered that I’d just do a “git diff” if I wanted to see a diff. The rest do not strike me as substantially better than what they’re trying to replace. Enjoy them all as you will, but I would recommend refraining from describing them as “modern unix” in the presence of any old-timers.

    • Pantherina@feddit.de
      link
      fedilink
      arrow-up
      0
      ·
      edit-2
      1 year ago

      Bat also adds lots of stuff to the output. Is there a clean print functionality without the extra numbers?

      Edit: but with the parameters its great!