I have a directory in which are listed some
.py files and some
.py.bak files. I want to delete the
.py files and restore the backup file renaming them
*.py. Is there a shell script that can do this?
This should do. Be sure to test on files you wouldn't mind losing.