<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kanonji</author_name>
  <author_url>https://blog.hatena.ne.jp/kanonji/</author_url>
  <blog_title>kanonji’s diary</blog_title>
  <blog_url>https://kanonji.hatenadiary.com/</blog_url>
  <categories>
    <anon>Mac</anon>
  </categories>
  <description>find . -type d -print0 | xargs -0 chmod go+rx ディレクトリ名に0x20（空白）が入るMac OS X環境でfindに-print0を使わずにxargsで受け取るのはヤバい。かなり危険。一度AppleがiTunesのアップデートスクリプトで0x20デリミタの想定外動作をやらかして、誤消去したことがあったよなぁ。 なので「findには必ず-print0オプションを付けて、xargs -0で受け取る」というのを広く世に広めたい。 void GraphicWizardsLair( void ); // いまどきfindとxargsを使う時は-print0と…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkanonji.hatenadiary.com%2Fentry%2F20091119%2F1258616974&quot; title=&quot; Macでfindとxargsをパイプで繋いで使うなら -print0 と -0 を必ず使うメモ - kanonji’s diary&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2009-11-19 16:49:34</published>
  <title> Macでfindとxargsをパイプで繋いで使うなら -print0 と -0 を必ず使うメモ</title>
  <type>rich</type>
  <url>https://kanonji.hatenadiary.com/entry/20091119/1258616974</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
