ãã£ã¬ã¯ããªå ãã¡ã¤ã«ãä¸æ¬ãªãã¼ã ããã·ã§ã«ã¹ã¯ãªãã
æ¬çªä½æ¥åã«æ¢åãã¡ã¤ã«ããªãã¼ã ãã¦ããããªãã¦æã«ä¸ã¤ä¸ã¤ããã®ãé¢åãªã®ã§ãã¹ã¯ãªããã§ãµãã¯ãªã¨ã
*.hogeã*.fooã«ãªãã¼ã ã
for file in `find ./ -name "*.hoge" -print` do res=`expr $file : "\(.*\).hoge"` mv $file $res.foo done