• @AnUnusualRelic
    link
    English
    24
    edit-2
    10 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
          110 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
      610 months ago

      Ohhh the exes are IN the computer.

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

      Almost

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

      Or easier

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