• @AnUnusualRelic
    link
    English
    24
    edit-2
    9 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
          19 months ago

          Here you go:

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

          See? It’s an exe now.

    • @Fungah
      link
      English
      69 months ago

      Ohhh the exes are IN the computer.

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

      Almost

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

      Or easier

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