<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>argius</author_name>
  <author_url>https://blog.hatena.ne.jp/argius/</author_url>
  <blog_title>argius note</blog_title>
  <blog_url>https://argius.hatenablog.jp/</blog_url>
  <categories>
    <anon>Unix-like</anon>
  </categories>
  <description>Javaプログラムを起動するスクリプトを書くときなどに、良く使うのではないかと思います。とは言え、自分ではあまり使ったことないので、使い方を忘れていました。ということで、おさらい。shiftは、コマンドラインパラメータの先頭の値を指定した数だけ押し出します。パラメータが [a b c] で、&quot;shift 2&quot;としたら、$* は[c]となります。これは、先頭のパラメータだけ特別扱いしたい場合、例えば、後述するcase文で分岐のためだけに使用して、残りは丸投げしたいようなときに使用します。 caseは、switch文などとほぼ同じです。ワイルドカードが指定できます。最後の *) は&quot;otherwi…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fargius.hatenablog.jp%2Fentry%2F20091223%2F1261529293&quot; title=&quot;Bshellメモ: shift, case - argius note&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>2009-12-23 09:48:13</published>
  <title>Bshellメモ: shift, case</title>
  <type>rich</type>
  <url>https://argius.hatenablog.jp/entry/20091223/1261529293</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
