{"url":"https://kagasu.hatenablog.com/entry/2017/11/13/160045","type":"rich","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkagasu.hatenablog.com%2Fentry%2F2017%2F11%2F13%2F160045\" title=\"bash\u3067\u6587\u5b57\u5217\u3092\u6570\u5024\u306b\u5909\u63db\u3057\u3066\u6570\u5024\u8a08\u7b97\u3059\u308b\u65b9\u6cd5 - \u5099\u5fd8\u9332\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_url":"https://hatena.blog","image_url":null,"width":"100%","blog_url":"https://kagasu.hatenablog.com/","height":"190","categories":["Linux","bash"],"author_url":"https://blog.hatena.ne.jp/kagasu/","published":"2017-11-13 16:00:45","title":"bash\u3067\u6587\u5b57\u5217\u3092\u6570\u5024\u306b\u5909\u63db\u3057\u3066\u6570\u5024\u8a08\u7b97\u3059\u308b\u65b9\u6cd5","blog_title":"\u5099\u5fd8\u9332","provider_name":"Hatena Blog","author_name":"kagasu","version":"1.0","description":"\u2160. \u306f\u3058\u3081\u306b bash\u306e\u5909\u6570\u306f\u5168\u3066\u3092\u6587\u5b57\u5217\u3068\u3057\u3066\u6271\u3046\u70ba\u3001\u305d\u306e\u307e\u307e\u3067\u306f\u6570\u5024\u8a08\u7b97\u304c\u3067\u304d\u307e\u305b\u3093\u3002 \u6570\u5024\u8a08\u7b97\u3092\u884c\u3046\u65b9\u6cd5\u3068\u3057\u3066\u4ee5\u4e0b\u306e3\u901a\u308a\u3042\u308a\u307e\u3059\u3002 # \u6982\u8981 1 $(())\u3092\u4f7f\u3046\u65b9\u6cd5 2 expr\u3092\u4f7f\u3046\u65b9\u6cd5 3 bc\u3092\u4f7f\u3046\u65b9\u6cd5 \u2161. $(())\u3092\u4f7f\u3046\u65b9\u6cd5 $ echo $((10+10)) 20 \u2162. expr\u3092\u4f7f\u3046\u65b9\u6cd5 $ echo `expr 10 \\+ 10` 20\u203b \\\u3092\u4f7f\u3046\u7406\u7531\u306f\u3001\u69cb\u6587\u30a8\u30e9\u30fc\u3092\u3055\u3051\u308b\u70ba\u3067\u3059\u3002 10 * 10\u306e\u639b\u3051\u7b97\uff08\u30c0\u30e1\u306a\u4f8b\uff09 $ echo `expr 10 * 10` expr: \u69cb\u6587\u30a8\u30e9\u30fc 10 * 10\u306e\u639b\u3051\u7b97\uff08\u6b63\u3057\u3044\u4f8b\uff09 $ echo `expr 10 \\* 10`\u2026"}