メディアPCで退屈なハウスキーピングを行うための簡単なスクリプトを実装したいのですが、どのスクリプト言語がこのタスクに役立つかわかりません。
私がやりたいことの擬似コードは次のとおりです。
1) Scan a directory for sub directories matching a name like:
"Foo 1x01 bar"
"Foo 1x02 bar"
or
"Foo s01e01 bar"
"Foo s01e02 bar"
2) Then for each matching sub directory:
- Make a directory "Foo" if it doesn't already exist.
- Copy the largest file under the matching sub directory into "Foo".
- Delete the matched sub directory and anything left in it.
それでおしまい。時間の経過とともにさらに多くのことを行うために拡張したいと思うかもしれませんが。このタスクに使用する最も洗練されたスクリプトツールの提案はありますか?
ありがとう