Last active
April 18, 2017 15:35
-
-
Save jo-tilkee/e052da8f252e976e12e4c2960cc402d8 to your computer and use it in GitHub Desktop.
[manipulation de fichiers]: Changer toutes les extensions d'un type en un autre
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
#!bash | |
old_extension="sql" | |
new_extension="back" | |
for i in `ls *.$old_extension` | |
do | |
file=`basename $i .$old_extension` | |
mv $i $file.$new_extension | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment