find -name "*.xml" |xargs -i% ksh -c 'sort %_befor %_after |uniq -d > %_common'
-c file file が存在し、キャラクタスペシャルファイルである場合に真。