you are viewing a single comment's thread
view the rest of the comments
[–] 6 points 2 years ago*

Almost

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

Or easier

rename '.py' '.exe' *.py

  • source
  • parent