Bulk File Rename

March 24th, 2009 | by RoarinPenguin |

Situation:

I have multiple files with extension .sh.modified and I need to rename them all into .sh extension.

Solution:

for file in *.sh.modified; do mv ${file} ${file%sh.modified}.sh; done

Post a Comment