<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>koumiya</author_name>
  <author_url>https://blog.hatena.ne.jp/koumiya/</author_url>
  <blog_title>koumiyaの日記</blog_title>
  <blog_url>https://koumiya.hatenadiary.org/</blog_url>
  <categories>
  </categories>
  <description>/usr/local/ aaa/ ccc.log ddd.txt bbb/ ccc.log eee.txtからccc.logだけを抜き出したい！つまり、こんな感じにしたい。 ~/logs/ aaa/ ccc.log bbb/ ccc.logそんなとき用の自分なりの解。忘れないようにメモ。 mkdir ~/logs cd /usr/local for d in `ls -p | grep /`; do mkdir ~/logs/$d cp $dccc.log ~/logs/$d done &quot;ls -p | grep /&quot;でディレクトリだけ抽出できるので、あとは毎ディレクトリごとに作成とコピーを繰…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkoumiya.hatenadiary.org%2Fentry%2F20091120%2F1258721930&quot; title=&quot; シェルで階層ごと特定のファイルをコピー - koumiyaの日記&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-20 21:58:50</published>
  <title> シェルで階層ごと特定のファイルをコピー</title>
  <type>rich</type>
  <url>https://koumiya.hatenadiary.org/entry/20091120/1258721930</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
