• GhostlyPixel@lemmy.world
    link
    fedilink
    English
    arrow-up
    29
    ·
    edit-2
    6 hours ago

    I would think someone who is taking advantage of bat files would feel right at home with shell scripts in Linux. In my experience, shell was much easier to pick up than batch

    Batch is probably the same, but what always made me laugh about shell scripts is you could ask a bunch of people how to do something, and they’d all have a different way, it’s like there’s always a new tool to learn and try to fit into your workflow if you want, I love it

    • Pika@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      7
      ·
      5 hours ago

      I think I agree with this. I believe that if you are heavily into group policy or a centralized registry it would be a harder conversion. But you can even “hack” bat files to work for both Linux and Windows depending on what launches it. I had to do that with a testing bot that I sometimes ran on windows, sometimes ran on Linux. It involves abusing the label system on bat (which translates to a command true which accepts no arguments on sh). Granted you are still writing both files but, using this method you can have the windows version of it on the same page as the bash version so you can go line by line instead of having a second file open