xargs
は,処理するファイル名を,コマンドに対して与えた引数の間に
挿入することが可能です.コマンドの大きさを制限するオプションを与えてい
ない場合(see Limiting Command Size),このモードの処理は`find
-exec'と等価です(see Single File).
--replace
[=
replace-str]-i
[replace-str]find bills -type f | xargs -iXX sort -o XX.sorted XX
`find -execdir'を使用した等価のコマンドは以下のようになります.
find bills -type f -execdir sort -o '{}.sorted' '{}' ';'