flamingos-cant@ukfli.uk to Microblog Memes@lemmy.worldEnglish · 9 months agoScript kiddiesukfli.ukimagemessage-square260fedilinkarrow-up1965arrow-down129
arrow-up1936arrow-down1imageScript kiddiesukfli.ukflamingos-cant@ukfli.uk to Microblog Memes@lemmy.worldEnglish · 9 months agomessage-square260fedilink
minus-squareAnUnusualRelic@lemmy.worldlinkfedilinkEnglisharrow-up25arrow-down1·edit-29 months agoEasy! For i in *.py do; mv $i basename ($i).exe ; done Or something… I haven’t written any shell in ages.
minus-squareAnUnusualRelic@lemmy.worldlinkfedilinkEnglisharrow-up15·9 months agoNo more code, just exe.
minus-squaredroans@lemmy.worldlinkfedilinkEnglisharrow-up1·9 months agoHere you go: for i in *.py do; mv $i basename ($i).exe ; done && echo .exe See? It’s an exe now.
minus-squareFungah@lemmy.worldlinkfedilinkEnglisharrow-up6·9 months agoOhhh the exes are IN the computer.
minus-squaregimsy@feddit.itlinkfedilinkEnglisharrow-up6·edit-29 months agoAlmost for i in *.py do; mv $i $(basename $i).exe ; done Or easier rename ‘.py’ ‘.exe’ *.py
Easy!
For i in *.py do; mv $i basename ($i).exe ; done
Or something…
I haven’t written any shell in ages.
But why is there code?
No more code, just exe.
Here you go:
for i in *.py do; mv $i basename ($i).exe ; done && echo .exe
See? It’s an exe now.
Ohhh the exes are IN the computer.
Almost
for i in *.py do; mv $i $(basename $i).exe ; done
Or easier
rename ‘.py’ ‘.exe’ *.py