<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>a4dosanddos</author_name>
  <author_url>https://blog.hatena.ne.jp/a4dosanddos/</author_url>
  <blog_title>プログラム日記</blog_title>
  <blog_url>https://a4dosanddos.hatenablog.com/</blog_url>
  <categories>
    <anon>bash</anon>
  </categories>
  <description>bash で変数への代入、if 文、for 文、関数呼び出し等々するシェルスクリプトを書いてみました。 Web を検索するたくさんいい情報が出ている内容ですが、さっと取り出せるメモという感じです。以下が今回作ったシェルスクリプトです。 case で引数を判定して処理を分ける感じにしています。 #!/bin/bash # 呼び出し用の関数 testfunc() { #function testfunc() { でも OK echo &quot;hello $1&quot; } case $1 in # 変数に代入して、変数を出力する &quot;echo&quot; ) var=&quot;echo test&quot; echo $var #echo …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fa4dosanddos.hatenablog.com%2Fentry%2F2015%2F06%2F09%2F010540&quot; title=&quot; 「bash」変数への代入、if 文、for 文、関数呼び出しメモ - プログラム日記&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>2015-06-09 01:05:40</published>
  <title> 「bash」変数への代入、if 文、for 文、関数呼び出しメモ</title>
  <type>rich</type>
  <url>https://a4dosanddos.hatenablog.com/entry/2015/06/09/010540</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
