findコマンドの検索結果をフルパスでヌル文字をくわえて標準出力へアウトプットし(「-print0」オプションの働き)、それを受けるxargsコマンドでは文字列の区切りにヌル文字を使用している(「-0」オプションの働き)。なぜこのような手間をかけるかというと、OS Xではファイル名にスペースを含むことが多いからだ。
$ find . -type f -name '*.log' -print0 | xargs -0 rm
% xxd foo.data
$ curl http://twitter.com/statuses/user_timeline/OfficialTEPCO.xml|tidy -xml -utf8 -i