• @AnUnusualRelic
    link
    English
    24
    edit-2
    7 months ago

    Easy!

    For i in *.py do; mv $i basename ($i).exe ; done

    Or something…

    I haven’t written any shell in ages.

        • @droans
          link
          English
          17 months ago

          Here you go:

          for i in *.py do; mv $i basename ($i).exe ; done && echo .exe

          See? It’s an exe now.

    • @[email protected]
      link
      fedilink
      English
      6
      edit-2
      7 months ago

      Almost

      for i in *.py do; mv $i $(basename $i).exe ; done

      Or easier

      rename ‘.py’ ‘.exe’ *.py

    • @Fungah
      link
      English
      67 months ago

      Ohhh the exes are IN the computer.