<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>sugyan</author_name>
  <author_url>https://blog.hatena.ne.jp/sugyan/</author_url>
  <blog_title>すぎゃーんメモ</blog_title>
  <blog_url>https://memo.sugyan.com/</blog_url>
  <categories>
    <anon>Linux</anon>
    <anon>Mac</anon>
  </categories>
  <description>$ ls hoge1.txt fuga1.txt piyo1.txtというファイル群に対し、ファイル名に含まれる番号だけを変えて $ ls hoge2.txt fuga2.txt piyo2.txtとなるようにしたくて、調べてた。 最初は、 $ for a in `ls *1*`; do mv $a `echo $a | sed &quot;s/1/2/&quot;`; doneというのしか思いつかなくて、なんともカッコ悪いし、俺馬鹿なの？死ぬの？とか思ったけど、どうやら $ for a in `ls *1*`; do mv $a ${a/1/2}; doneという方法が良さげ。 変数展開にこんなに応用技があると…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmemo.sugyan.com%2Fentry%2F20081021%2F1224557301&quot; title=&quot;ファイル名の一括変更 - すぎゃーんメモ&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>2008-10-21 11:48:21</published>
  <title>ファイル名の一括変更</title>
  <type>rich</type>
  <url>https://memo.sugyan.com/entry/20081021/1224557301</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
