flamingos-cantcake to Microblog MemesEnglish • 10 months agoScript kiddiesukfli.ukimagemessage-square257fedilinkarrow-up11.16Karrow-down134
arrow-up11.13Karrow-down1imageScript kiddiesukfli.ukflamingos-cantcake to Microblog MemesEnglish • 10 months agomessage-square257fedilink
minus-square@AnUnusualReliclinkEnglish24•edit-210 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•10 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-210 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