<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>iww</author_name>
  <author_url>https://blog.hatena.ne.jp/iww/</author_url>
  <blog_title>揮発性のメモ２</blog_title>
  <blog_url>https://iww.hateblo.jp/</blog_url>
  <categories>
    <anon>Linux</anon>
    <anon>bash</anon>
  </categories>
  <description>ランキング参加中Linuxランキング参加中プログラミングカウンターをインクリメントし、数値の末尾4桁を取り出す 桁が少ないときは 0 で埋める12 ⇒ 0012 12345 ⇒ 2345 # 1インクリメント ((COUNT++)) # 後ろ4桁を取り出す tmp=000$COUNT; NUM=${tmp: -4} echo $NUM おわり</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fiww.hateblo.jp%2Fentry%2F20251028%2FParameterExpansion&quot; title=&quot; bashで、数字の末尾4桁を取り出す - 揮発性のメモ２&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>https://cdn.image.st-hatena.com/image/square/adad63b72f1d6545b2ba2538c3fc2923b2fd5989/backend=imagemagick;height=80;version=1;width=80/https%3A%2F%2Fcdn.blog.st-hatena.com%2Fimages%2Fcircle%2Fofficial-circle-icon%2Fcomputers.gif</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2025-10-28 08:00:00</published>
  <title> bashで、数字の末尾4桁を取り出す</title>
  <type>rich</type>
  <url>https://iww.hateblo.jp/entry/20251028/ParameterExpansion</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
