<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>eel3</author_name>
  <author_url>https://blog.hatena.ne.jp/eel3/</author_url>
  <blog_title>新・日々録 by TRASH BOX@Eel</blog_title>
  <blog_url>https://eel3.hatenablog.com/</blog_url>
  <categories>
    <anon>小ネタプログラミング</anon>
    <anon>シェルスクリプト</anon>
    <anon>bash</anon>
    <anon>PowerShell</anon>
  </categories>
  <description>1〜12月の各月のデータを格納する目的で、ゼロパディングされた数値でディレクトリを作成したい。楽をしたいので、まずはゼロパディングされた連番を出力する方法を探ってみた。 シェルスクリプト（/bin/sh）の場合 seq(1)には、ゼロパディングして数値の幅を均等化するオプション -w がある。 seq -w 1 12 01 02 03 04 05 06 07 08 09 10 11 12ところで、任意の桁数にゼロパディングしたい場合はどうか？ 例えば2桁ではなく3桁にゼロパディングしたいならどうか？GNU coreutilsの場合は、次のように開始値ないし終了値を予めゼロパディングしておけばよ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Feel3.hatenablog.com%2Fentry%2F20141220%2F1419030489&quot; title=&quot;ゼロパディングされた連番を出力＋ディレクトリを作成 - 新・日々録 by TRASH BOX@Eel&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>2014-12-20 08:08:09</published>
  <title>ゼロパディングされた連番を出力＋ディレクトリを作成</title>
  <type>rich</type>
  <url>https://eel3.hatenablog.com/entry/20141220/1419030489</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
