<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ytooyama</author_name>
  <author_url>https://blog.hatena.ne.jp/ytooyama/</author_url>
  <blog_title>ytooyamaのブログ</blog_title>
  <blog_url>https://ytooyama.hatenadiary.jp/</blog_url>
  <categories>
    <anon>シェルスクリプト</anon>
  </categories>
  <description>1つのファイルをテンプレートとして連番のファイルを作るなんてことをよくやるんですが、 少なければ手動でコピーしてファイルをリネームで対応してしまうものの、ファイル数が10を超えるとさすがにしんどいですよね。 でも、なんとかfor文とdo文を使うだけのシェルスクリプトを書くことで対応できました。 このスクリプトではchapter1.mdをテンプレートとして、2以降連番でファイルを作るものです。展開するファイルの数はfor〜inの後、格好が悪いですが数字を並べていく方法とseqを使って表記する方法があります（chapterは変数）。 for chapter in 2 3 4 5 6 7 8 9 1…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fytooyama.hatenadiary.jp%2Fentry%2F2016%2F05%2F26%2F002407&quot; title=&quot;1つのファイルをテンプレートとして連番のファイルを作る - ytooyamaのブログ&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>2016-05-26 00:24:07</published>
  <title>1つのファイルをテンプレートとして連番のファイルを作る</title>
  <type>rich</type>
  <url>https://ytooyama.hatenadiary.jp/entry/2016/05/26/002407</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
