{"published":"2021-11-05 16:07:33","width":"100%","description":"bash \u3067\u914d\u5217\u306b\u5165\u308c\u305f\u6587\u5b57\u5217\u3092\u5909\u6570\u3068\u3057\u3066\u89e3\u91c8\u3059\u308b \u5909\u6570\u306e\u6587\u5b57\u5217\u3092\u3001\u5909\u6570\u3068\u3057\u3066\u89e3\u91c8\u3059\u308b\u3002 echo $name=${!name} \u305f\u3068\u3048\u3070\u5909\u6570\u8abf\u3079\u308b\u3068\u304d\u306b\u5909\u6570\u540d\u3092\u5217\u6319\u3057\u3066\u4e2d\u8eab\u3092\u5168\u90e8\u898b\u308b\u3068\u304b\u3002 #!/usr/bin/env bash for i in ip mask subnet subnet interface router ; do echo $i=${!i} done \u53ef\u5909\u5909\u6570\u3068\u304bvariable variable \u3068\u304b\u4e00\u822c\u547c\u79f0\u306f\u3042\u308b\u306e\u3067\u3059\u304c\u3001\u3042\u307e\u308a\u666e\u53ca\u3057\u3066\u306a\u3044\u3067\u3059\u306d\u3002 bash\u306e\u30de\u30cb\u30e5\u30a2\u30eb\u3092\u898b\u308b\u3068\u3001indirect access \u306a\u306e\u3067\u9593\u63a5\u53c2\u7167\u3068\u304b\u306e\u90a6\u8a33\u306b\u306a\u308a\u307e\u3059\u3002 \u6587\u5b57\u5217\u3092\u5909\u6570\u540d\u3068\u3057\u3066\u2026","version":"1.0","author_name":"takuya_1st","url":"https://takuya-1st.hatenablog.jp/entry/2021/11/05/160733","image_url":null,"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftakuya-1st.hatenablog.jp%2Fentry%2F2021%2F11%2F05%2F160733\" title=\"bash\u3067\u6587\u5b57\u5217\u306e\u4e2d\u8eab\u306e\u5909\u6570\u540d\u306e\u5024\u3092\u53d6\u308a\u51fa\u3059\uff08\u53ef\u5909\u5909\u6570\u30fb\u9593\u63a5\u53c2\u7167\uff09 - \u305d\u308c\u30de\u30b0\u3067\uff01\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","categories":["bash"],"author_url":"https://blog.hatena.ne.jp/takuya_1st/","provider_name":"Hatena Blog","provider_url":"https://hatena.blog","type":"rich","blog_title":"\u305d\u308c\u30de\u30b0\u3067\uff01","height":"190","title":"bash\u3067\u6587\u5b57\u5217\u306e\u4e2d\u8eab\u306e\u5909\u6570\u540d\u306e\u5024\u3092\u53d6\u308a\u51fa\u3059\uff08\u53ef\u5909\u5909\u6570\u30fb\u9593\u63a5\u53c2\u7167\uff09","blog_url":"https://takuya-1st.hatenablog.jp/"}