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
Notes, hints, tips… in one word: experience!
I have multiple files with extension .sh.modified and I need to rename them all into .sh extension.
for file in *.sh.modified; do mv ${file} ${file%sh.modified}.sh; done