-
-
Save l3robot/dbcc6385d83442013592 to your computer and use it in GitHub Desktop.
Simple script to change the extension of many file in a folder. Usage : ext <old_ext> <new_ext>. It actually replace a part of a name to another
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| LIST="$(ls | grep $1)"; | |
| for i in $LIST; | |
| do mv $i ${i/$1/$2}; | |
| done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment