<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>USAGI-WRP</author_name>
  <author_url>https://blog.hatena.ne.jp/USAGI-WRP/</author_url>
  <blog_title>C++ ときどき ごはん、わりとてぃーぶれいく☆</blog_title>
  <blog_url>https://usagi.hatenablog.jp/</blog_url>
  <categories>
    <anon>sh</anon>
    <anon>parameters</anon>
  </categories>
  <description>「/bin/shで任意番目の引数へ、C++のmain関数の引数の定番お約束だったらargv[argc]とかする様にウマイことさっくりアクセスできないのかしら？ｗ？」というお話があってちょっと試してみたら・・・物の見事に一発目に誤答してしまったので正解と共に備忘録。 答え（正解編） /bin/shの任意番目（例えば$argc=2）の引数へさくっとアクセスするテスト — Gist #/bin/sh argc=2 echo '/bin/shの任意番目（例えば$argc=2）の引数へさくっとアクセスするテスト' eval echo \$$argc % ./sh_argv_argc_sample.sh …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fusagi.hatenablog.jp%2Fentry%2F2012%2F04%2F13%2F104417&quot; title=&quot;/bin/shの任意番目（例えば$argc=2）の引数へさくっとアクセスする方法 - C++ ときどき ごはん、わりとてぃーぶれいく☆&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-04-13 10:44:17</published>
  <title>/bin/shの任意番目（例えば$argc=2）の引数へさくっとアクセスする方法</title>
  <type>rich</type>
  <url>https://usagi.hatenablog.jp/entry/2012/04/13/104417</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
