{"type":"rich","blog_url":"https://iww.hateblo.jp/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fiww.hateblo.jp%2Fentry%2F2021%2F03%2F24%2F111612\" title=\" bash\u3067 while\u306e\u4e2d\u3067eval\u3092\u4f7f\u3046 - \u63ee\u767a\u6027\u306e\u30e1\u30e2\uff12\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","title":" bash\u3067 while\u306e\u4e2d\u3067eval\u3092\u4f7f\u3046","image_url":"https://cdn.user.blog.st-hatena.com/default_entry_og_image/42132/1577169589465165","provider_name":"Hatena Blog","version":"1.0","author_name":"iww","author_url":"https://blog.hatena.ne.jp/iww/","categories":["Linux","bash"],"provider_url":"https://hatena.blog","blog_title":"\u63ee\u767a\u6027\u306e\u30e1\u30e2\uff12","height":"190","description":"for\u6587\u3067\u51fa\u6765\u308b for x in A=hoge B=piyo; do eval $x done echo A=$A echo B=$B A=hogeA B=hogeBwhile\u6587\u3067\u3053\u3046\u66f8\u304f\u3068\u30a2\u30a6\u30c8 echo -e \"A=hoge\\nB=piyo\" | while read x; do eval $x done A= B=\u306a\u305c\u306a\u3089\u3001\u30d1\u30a4\u30d7\u3092\u4f7f\u3063\u3066\u3044\u308b\u304b\u3089\u3002 \u30b5\u30d6\u30b7\u30a7\u30eb\u306b\u306a\u308b\u306e\u3067\u5909\u6570\u306f\u3069\u3063\u304b\u884c\u3063\u3066\u3057\u307e\u3046while\u6587\u3067\u3084\u308a\u305f\u3044\u3068\u304d\u306f\u3001\u3069\u3046\u306b\u304b\u30d1\u30a4\u30d7\u3092\u4f7f\u308f\u305a\u306b\u76f4\u63a5\u98df\u308f\u305b\u308c\u3070\u826f\u3044 while read x; do eval $x done < <(echo -e \"A=hoge\\nB=piyo\") w\u2026","published":"2021-03-24 11:16:12","url":"https://iww.hateblo.jp/entry/2021/03/24/111612","width":"100%"}