{"blog_url":"https://aimstogeek.hatenablog.com/","blog_title":"\u30af\u30a4\u30c3\u30af \u30a8\u30f3\u30b8\u30cb\u30a2\u30ea\u30f3\u30b0\u30d6\u30ed\u30b0","url":"https://aimstogeek.hatenablog.com/entry/2016/02/07/000318","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Faimstogeek.hatenablog.com%2Fentry%2F2016%2F02%2F07%2F000318\" title=\"\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u3067find\u3057\u305f\u7d50\u679c\u3092\u914d\u5217\u3067\u53d7\u3051\u53d6\u308b - \u30af\u30a4\u30c3\u30af \u30a8\u30f3\u30b8\u30cb\u30a2\u30ea\u30f3\u30b0\u30d6\u30ed\u30b0\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","title":"\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u3067find\u3057\u305f\u7d50\u679c\u3092\u914d\u5217\u3067\u53d7\u3051\u53d6\u308b","categories":["Linux","bash"],"image_url":null,"author_name":"aimstogeek","description":"\u3053\u3093\u306b\u3061\u306f\u3002\u65b0\u5352\u30a8\u30f3\u30b8\u30cb\u30a2\u306e\u4e94\u6240\u3067\u3059\u3002 \u4eca\u56de\u306f\u3059\u3054\u304f\u77ed\u3044\u5c0f\u30cd\u30bf\u3067\u3059\u3002 ShellScript\uff08Bash\uff09\u3092\u66f8\u3044\u3066\u3044\u3066\u3001\u5c11\u3005\u306f\u307e\u3063\u305f\u306e\u3067\u30e1\u30e2\u3002 \u30c7\u30a3\u30ec\u30af\u30c8\u30ea/home/hoge/files\u306b\u30d5\u30a1\u30a4\u30eba,b\u304c\u3042\u308b\u3068\u3059\u308b\u3002 \u3053\u308c\u3089\u306e\u30d5\u30eb\u30d1\u30b9\u3092find\u3067\u53d6\u5f97\u3057\u3066\u7d50\u679c\u3092\u914d\u5217\u3067\u53d7\u3051\u53d6\u308b\u3002 array=`find /home/hoge/files -type f` for a in $array; do echo $a done # \u7d50\u679c #/home/hoge/files/a #/home/hoge/files/b \u306f\u307e\u3063\u305f\u306e\u304c\u3001\u6700\u521d array=(`find /home/hoge/files -type\u2026","provider_url":"https://hatena.blog","published":"2016-02-07 00:03:18","type":"rich","provider_name":"Hatena Blog","width":"100%","author_url":"https://blog.hatena.ne.jp/aimstogeek/","height":"190","version":"1.0"}