<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kkz_tech</author_name>
  <author_url>https://blog.hatena.ne.jp/kkz_tech/</author_url>
  <blog_title>開発の風景　〜KKZのSE日記〜</blog_title>
  <blog_url>https://kkz-tech.hatenadiary.org/</blog_url>
  <categories>
    <anon>UNIX</anon>
    <anon>Shell</anon>
  </categories>
  <description>一発ネタ。 指定日付より古いファイルを検索して削除したいときは、findの &quot;-mtime +数字&quot; オプションを使ってファイル名を検索して、パイプで rm に渡せば良い。 $ find ./ -mtime +20 -name &quot;*.txt&quot; | xargs rmxargsはパイプで渡された値を次のコマンドの引数にするコマンド。rmじゃなくてechoだとこんな感じになります。 [root@localhost home]# find ./ -mtime +20 -name &quot;*.txt&quot; | xargs echo ./count.txt ./test/count2.txt findのmtimeで…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkkz-tech.hatenadiary.org%2Fentry%2F20140221%2F1392948700&quot; title=&quot; 指定日付より古いファイルを検索して削除 - 開発の風景　〜KKZのSE日記〜&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>2014-02-21 11:11:40</published>
  <title> 指定日付より古いファイルを検索して削除</title>
  <type>rich</type>
  <url>https://kkz-tech.hatenadiary.org/entry/20140221/1392948700</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
