<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>posturan</author_name>
  <author_url>https://blog.hatena.ne.jp/posturan/</author_url>
  <blog_title>Oboe吹きプログラマの黙示録</blog_title>
  <blog_url>https://oboe2uran.hatenablog.com/</blog_url>
  <categories>
    <anon>bash</anon>
  </categories>
  <description>bash のスクリプトを書いていて、変数にJSONテキストを入れたい。サンプル シングルクォートで括って、、 #!/bin/bash name=&quot;orange&quot; msg='{ &quot;count&quot;: 12, &quot;item&quot; : &quot;'$name'&quot; }' echo $msgJSONの中で変数をセットするのが良い書き方に思えない。 echo の結果はこうなる { &quot;count&quot;: 12, &quot;name&quot; : &quot;orange&quot; }cat コマンドを使って結果入力にする。 よく、EOF とか書いたりするが、今回は、&quot;!&quot; 文字で。 #!/bin/bash name=&quot;orange&quot; msg=`cat &lt;&lt;! {…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Foboe2uran.hatenablog.com%2Fentry%2F2022%2F08%2F01%2F003000&quot; title=&quot;JSONテキストを変数にする - Oboe吹きプログラマの黙示録&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>2022-08-01 00:30:00</published>
  <title>JSONテキストを変数にする</title>
  <type>rich</type>
  <url>https://oboe2uran.hatenablog.com/entry/2022/08/01/003000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
