xargsでパイプに投げたいとき。

http://d.hatena.ne.jp/sodomojo/20090519/1242704070
にあるようにkshを挟めば良いらしい。

find -name "*.xml" |xargs -i% ksh -c 'sort %_befor %_after |uniq -d > %_common'

のような感じ。

ksh のオプション-cは
-c file
file が存在し、キャラクタスペシャルファイルである場合に真。 
とのこと























最終更新:2013年01月10日 13:45