<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>Shinya_131</author_name>
  <author_url>https://blog.hatena.ne.jp/Shinya_131/</author_url>
  <blog_title>機略戦記</blog_title>
  <blog_url>https://shinya131-note.hatenablog.jp/</blog_url>
  <categories>
    <anon>shell</anon>
  </categories>
  <description>異なるディレクトリに入った同名のファイルを1箇所にまとめたい。 ファイル名が同一なので、何かユニークな名前に変える必要がある。 結論 for i in `find . | grep .gz` do before=$i after=`echo $before | sed 's/\.\///g' | sed 's/\//_/g'` `cp $before $after` done こんな感じ。 説明 こんな感じだとする。 find . $ find . -type file ./dirctory_01/a.gz ./dirctory_02/a.gz ./dirctory_03/a.gz 上記のファ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fshinya131-note.hatenablog.jp%2Fentry%2F2015%2F08%2F29%2F164151&quot; title=&quot;異なるディレクトリに入った同名のファイルを1箇所にまとめたい - 機略戦記&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>2015-08-29 16:41:51</published>
  <title>異なるディレクトリに入った同名のファイルを1箇所にまとめたい</title>
  <type>rich</type>
  <url>https://shinya131-note.hatenablog.jp/entry/2015/08/29/164151</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
