Skip to content

Instantly share code, notes, and snippets.

@TB-O-gh
Created November 24, 2019 02:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TB-O-gh/21639022ccbc30c7260dd6b9571431a9 to your computer and use it in GitHub Desktop.
Save TB-O-gh/21639022ccbc30c7260dd6b9571431a9 to your computer and use it in GitHub Desktop.
拡張子一括変更スクリプト
#!/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