<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>neil_sk</author_name>
  <author_url>https://blog.hatena.ne.jp/neil_sk/</author_url>
  <blog_title>TOYBOX</blog_title>
  <blog_url>https://neil-sk.hatenadiary.org/</blog_url>
  <categories>
    <anon>Linux</anon>
    <anon>ShellScript</anon>
  </categories>
  <description>最近テスト用のシェルスクリプトを書く機会が多く、ホスト名の生成等で数字の桁合わせをしなければならなかったので、方法を調べてみました。 Linuxで桁合わせをした数字を出力する方法 seqを使う。 今まで知らなかったのですが、seqというコマンドがありました。これは特定範囲の数字を生成するコマンドとのことです。 $ seq 5 10 5 6 7 8 9 10 &quot;-w&quot; オプションを使うと、桁合わせができます。 $ seq -w 5 10 05 06 07 08 09 10 forを使って文字列と組み合わせ for i in `seq -w 5 10` do echo &quot;hogehost$i&quot; d…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fneil-sk.hatenadiary.org%2Fentry%2F20120611%2F1339391734&quot; title=&quot;桁合わせした数字の出力。 - TOYBOX&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>2012-06-11 14:15:34</published>
  <title>桁合わせした数字の出力。</title>
  <type>rich</type>
  <url>https://neil-sk.hatenadiary.org/entry/20120611/1339391734</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
