Created
November 24, 2019 02:12
-
-
Save TB-O-gh/21639022ccbc30c7260dd6b9571431a9 to your computer and use it in GitHub Desktop.
拡張子一括変更スクリプト
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
#!/usr/bin/bash | |
set -e | |
for list in `ls -1 ./*.$1`;do | |
basenameline=`basename $list .$1` | |
mv $basenameline.$1 $basenameline.$2 | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment