<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>takuya_1st</author_name>
  <author_url>https://blog.hatena.ne.jp/takuya_1st/</author_url>
  <blog_title>それマグで！</blog_title>
  <blog_url>https://takuya-1st.hatenablog.jp/</blog_url>
  <categories>
    <anon>find</anon>
    <anon>linux</anon>
  </categories>
  <description>find コマンドで指定条件のファイルを＜除外＞したい時 ずっとgrep 使ってたんですけど、find だけで出来ないのかなと気になって調べました。 -not -name pattern のように出来る 除外するときは、-not を最初につけてから上限を書けばいいことがわかった。 次の例は、拡張子 jpg を除外する場合 find -type f -not -name '*jpg' 条件として記述するので name 以外にもファイル名やパーミッションなど find コマンドのオプションと -notを組み合わせて、◯◯以外の条件にマッチしたものを除く、といったファイルの検索できることがわかる。 …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftakuya-1st.hatenablog.jp%2Fentry%2F2016%2F08%2F06%2F032454&quot; title=&quot; find コマンドで指定条件を除外(exclude)して、特定の拡張子を対象から消すには - それマグで！&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>2016-08-06 03:24:54</published>
  <title> find コマンドで指定条件を除外(exclude)して、特定の拡張子を対象から消すには</title>
  <type>rich</type>
  <url>https://takuya-1st.hatenablog.jp/entry/2016/08/06/032454</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
