<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>te-nu</author_name>
  <author_url>https://blog.hatena.ne.jp/te-nu/</author_url>
  <blog_title>ウェブエンジニア珍道中</blog_title>
  <blog_url>https://www.te-nu.com/</blog_url>
  <categories>
    <anon>Linux</anon>
  </categories>
  <description>ファイルをファイル名などで検索して消すことが度々あるのですが、毎度忘れて検索するので備忘録としてまとめちゃいます。 テンプレ find {検索したいファイルパス} {検索条件} -exec {追加で行いたいコマンド} \; サンプル 名前にhogeを含むファイルを見つけて消したい find ./ -name &quot;*hoge*&quot; -type f -exec rm -f {} \; -execがポイントで、見つけたファイルに対して操作することができます。 {}には見つかったファイルのファイルパスが入り rm -rf {ファイル名}となって消されます。複数ファイルが見つかった場合はループになります。 …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.te-nu.com%2Fentry%2F2019%2F03%2F21%2F170759&quot; title=&quot;findコマンドで見つけたファイルを消す - ウェブエンジニア珍道中&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>2019-03-21 17:07:59</published>
  <title>findコマンドで見つけたファイルを消す</title>
  <type>rich</type>
  <url>https://www.te-nu.com/entry/2019/03/21/170759</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
