{"type":"rich","categories":["\u30b7\u30a7\u30eb"],"blog_title":"\u3059\u304c\u30d6\u30ed","author_url":"https://blog.hatena.ne.jp/seiunsky/","title":"for \u7b49\u306e\u533a\u5207\u308a\u4f4d\u7f6e\u3092\u5909\u66f4\u3059\u308b","version":"1.0","width":"100%","published":"2008-08-16 11:52:14","blog_url":"https://sugamasao.hatenablog.com/","provider_url":"https://hatena.blog","description":"for in \u7b49\u3092\u4f7f\u3046\u6642\u306b \u6539\u884c\u3060\u3051\u3067\u5206\u5272\u3057\u3066\u304f\u308c\uff01 \u3068\u304b\u601d\u3046\u6642\u3063\u3066\u3042\u308b\u3088\u306d\u3002 \u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u3001\u533a\u5207\u308a\u6587\u5b57\u306fIFS \u3068\u3044\u3046\u5909\u6570\u306b\u6301\u3063\u3066\u3044\u308b\u306e\u3067\u3001\u3053\u3044\u3064\u3092\u4e00\u6642\u7684\u306b\u5909\u66f4\u3057\u3066\u3042\u3052\u308c\u3070\u533a\u5207\u308a\u6587\u5b57\u3092\u3059\u304d\u306a\u3088\u3046\u306b\u3067\u304d\u308b\u3002 1 #!/bin/sh 2 3 LIST=\"test1\\ttest2 test3 4 test4\" 5 6 echo '\u30c7\u30d5\u30a9\u30eb\u30c8\u306eIFS' 7 for l in ${LIST}; do 8 echo \"[${l}]\" 9 done 10 11 12 # \u30b7\u30a7\u30eb\u5185\u306e\u533a\u5207\u308a\u6587\u5b57\u3092\u5909\u66f4\u3059\u308b 13 IFS=' 14 ' 15 16 echo '\u6539\u884c\u3060\u3051\u306b\u3057\u305fIFS' 17 for l in ${\u2026","height":"190","image_url":null,"url":"https://sugamasao.hatenablog.com/entry/20080816/1218855134","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsugamasao.hatenablog.com%2Fentry%2F20080816%2F1218855134\" title=\"for \u7b49\u306e\u533a\u5207\u308a\u4f4d\u7f6e\u3092\u5909\u66f4\u3059\u308b - \u3059\u304c\u30d6\u30ed\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_name":"seiunsky","provider_name":"Hatena Blog"}