シェルスクリプトを使って複数ファイルを一括リネームする方法を解説します. 例えば, ディレクトリにapple1, apple2, apple3, apple4, apple5というファイルがあり, これをorange1, orange2, orange3, orange4, orange5というファイル名に変えたいときには, 次のようにします. $ ls apple1 apple2 apple3 apple4 apple5 $ for f in apple* ; do ; mv $f ${f/apple/orange} ; done $ ls orange1 orange2 orange3 orange4 orange5