<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>woshidan</author_name>
  <author_url>https://blog.hatena.ne.jp/woshidan/</author_url>
  <blog_title>woshidan's loose leaf</blog_title>
  <blog_url>https://woshidan.hatenadiary.jp/</blog_url>
  <categories>
    <anon>bash</anon>
    <anon>引数</anon>
  </categories>
  <description>即席で作ったシェルスクリプトのオプションの自前解析がしたくて。。 #!/bin/bash i=0 for OPT in &quot;$@&quot; do echo &quot;index: $i OPT: $OPT OPTの一個後ろの要素 ${@:$(expr $i + 2):1}&quot; # $i + 1 でないのは@の先頭は全要素を出力するため i=$(expr $i + 1) done $ test.sh aa bbb c d index: 0 OPT: aa OPTの一個後ろの要素 bbb index: 1 OPT: bbb OPTの一個後ろの要素 c index: 2 OPT: c OPTの一個後ろの要素 d ind…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwoshidan.hatenadiary.jp%2Fentry%2F2017%2F12%2F02%2F223945&quot; title=&quot;bashで引数の配列の一つ後の要素を取り出す - woshidan&amp;#39;s loose leaf&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>2017-12-02 22:39:45</published>
  <title>bashで引数の配列の一つ後の要素を取り出す</title>
  <type>rich</type>
  <url>https://woshidan.hatenadiary.jp/entry/2017/12/02/223945</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
