renameコマンドの使い方
解説サイトの中には次のような使い方を紹介しているところもあるが
rename old new *.py
みたいに使うとエラーが返ってくる
Bareword “old” not allowed while “strict subs” in use at (user-supplied code).
こういう場合は以下のように使う
[code lang=”bash”]
rename "s/old/new/;" target
#具体的には
rename "s/ch01/ch01-/;" ch01*.py
[/code]