<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>pneumaster</author_name>
  <author_url>https://blog.hatena.ne.jp/pneumaster/</author_url>
  <blog_title>bugfix</blog_title>
  <blog_url>https://pneumaster.hatenadiary.org/</blog_url>
  <categories>
    <anon>tmp</anon>
    <anon>プログラミング</anon>
  </categories>
  <description>シェルスクリプト総合 その15 http://pc12.2ch.net/test/read.cgi/unix/1246408968/ 492 ：名無しさん＠お腹いっぱい。 ：2009/09/20(日) 20:46:49 bash又はkshで長さが一定でないファイル名からある位置の文字を取り出したい。 具体的にはhogehoge〜XX.txtのXXの２文字。後ろから５，６文字目。 前からの位置であればcutで簡単だったのだが後ろからで行き詰った。 考えた挙句、echo ファイル名 | wc -c等で長さを取って、 それをexprで６減算した値をcutの開始位置にしてやったりして出来たのだが たか…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpneumaster.hatenadiary.org%2Fentry%2F19600103%2F1254739812&quot; title=&quot;sh(bash)プログラミング - bugfix&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>1960-01-03 19:50:12</published>
  <title>sh(bash)プログラミング</title>
  <type>rich</type>
  <url>https://pneumaster.hatenadiary.org/entry/19600103/1254739812</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
