flamingos-cant to Microblog MemesEnglish • 9 months agoScript kiddiesukfli.ukimagemessage-square257fedilinkarrow-up11.16Karrow-down134
arrow-up11.13Karrow-down1imageScript kiddiesukfli.ukflamingos-cant to Microblog MemesEnglish • 9 months agomessage-square257fedilink
minus-square@AnUnusualReliclinkEnglish24•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-square@droanslinkEnglish1•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-square@[email protected]linkfedilinkEnglish6•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