{"title":"bash\u306e\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u62e1\u5f35\u5b50\u3092\u53d6\u5f97\u3057\u3066\u5229\u7528\u3059\u308b\u3068\u304d\u306e\u307e\u3068\u3081","author_name":"takuya_1st","provider_url":"https://hatena.blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftakuya-1st.hatenablog.jp%2Fentry%2F2017%2F06%2F01%2F163000\" title=\"bash\u306e\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u62e1\u5f35\u5b50\u3092\u53d6\u5f97\u3057\u3066\u5229\u7528\u3059\u308b\u3068\u304d\u306e\u307e\u3068\u3081 - \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>","provider_name":"Hatena Blog","categories":["bash"],"type":"rich","url":"https://takuya-1st.hatenablog.jp/entry/2017/06/01/163000","version":"1.0","author_url":"https://blog.hatena.ne.jp/takuya_1st/","description":"\u7279\u5b9a\u306e\u62e1\u5f35\u5b50\u306b\u25cb\u25cb\u3059\u308b\u7684\u306a\u3053\u3068\u306f\u3088\u304f\u3042\u308b \u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u66f8\u3044\u3066\u3044\u308b\u3068\u62e1\u5f35\u5b50\u3067\u5224\u5225\u3057\u305f\u3044\u3053\u3068\u306f\u3088\u304f\u3042\u308b\u3002 bash\u3067\u62e1\u5f35\u5b50\u3092\u53d6\u5f97\u3059\u308b\u306b\u306f bash\u306e\u30d6\u30ec\u30fc\u30b9\u5c55\u958b\u304c\u4e00\u756a\u30e9\u30af\u3067\u3059\u3002 path=/etc/apache2/httpd.conf extension=${path##*.} #=> conf \u7279\u5b9a\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u4e2d\u3067\u62e1\u5f35\u5b50\u3092\u53d6\u5f97\u3059\u308b\u306b\u306f xargs \u3068\u7d44\u307f\u5408\u308f\u305b\u308b find | xargs -I@ bash -c 'path=@; echo ${path##*.}' \u305d\u3082\u305d\u3082\u62e1\u5f35\u5b50\u306e\u53d6\u5f97\u304c\u5fc5\u8981\u3067\u3059\u304b\uff1f \u305d\u306e\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u62e1\u5f35\u5b50\u3092\u3082\u3068\u306b\u691c\u7d22\u3092\u3057\u305f\u3044\u306a\u3089\u3001\u62e1\u5f35\u5b50\u3092\u53d6\u308b\u5fc5\u8981\u306f\u306a\u3044\u304b\u3082\u3057\u308c\u306a\u2026","blog_title":"\u305d\u308c\u30de\u30b0\u3067\uff01","height":"190","published":"2017-06-01 16:30:00","image_url":null,"width":"100%","blog_url":"https://takuya-1st.hatenablog.jp/"}