>fooは全てのファイルに対して1回だけ実行
xargs でいいじゃん