{"type":"rich","provider_name":"Hatena Blog","categories":["linux"],"image_url":null,"description":"find -exec\u306f\u30011\u30d5\u30a1\u30a4\u30eb\u306b\u5bfe\u3057\u30661\u56de\u305a\u3064\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3002xargs\u306f\u6a19\u6e96\u5165\u529b\u304b\u3089\u53d7\u3051\u53d6\u3063\u305f\u8907\u6570\u306e\u30d5\u30a1\u30a4\u30eb\u306b\u5bfe\u3057\u3066\u3001\u30b3\u30de\u30f3\u30c9\u30921\u56de\u3067\u5b9f\u884c(\u3068\u3044\u3063\u3066\u3082\u30b7\u30a7\u30eb\u306b\u6e21\u305b\u308b\u9650\u754c\u304c\u3042\u308b\u304b\u3089\u3001\u5165\u529b\u304c\u591a\u3059\u304e\u308b\u5834\u5408\u306f\u8907\u6570\u56de\u306b\u308f\u3051\u3066\u5b9f\u884c)\u3002\u3060\u304b\u3089\u3001xargs\u306e\u307b\u3046\u304c\u65e9\u3044\u3068\u601d\u3063\u3066\u3044\u305f\u3002\u4f8b\u3048\u3070\u7279\u5b9a\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u6d88\u3059\u5834\u5408\u3002 $ find /tmp/ -type f -mtime +1 -exec rm {} \\; # \u4ee5\u4e0b\u3068\u307b\u307c\u540c\u7b49 $ find /tmp/ -type f -mtime +1 -print0 | xargs -0 -n1 rm\u3068\u3053\u308d\u304c\u3001find -exec\u3067'\\;'\u3067\u306f\u306a\u304f\u3001'+'\u3092\u6307\u5b9a\u3059\u308c\u3070x\u2026","provider_url":"https://hatena.blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhogem.hatenablog.com%2Fentry%2F20090601%2F1243862119\" title=\"find -exec\u3068xargs - \u3046\u307e\u3044\u307c\u3046\u3076\u308d\u3050\" 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":"hogem","blog_title":"\u3046\u307e\u3044\u307c\u3046\u3076\u308d\u3050","title":"find -exec\u3068xargs","version":"1.0","width":"100%","blog_url":"https://hogem.hatenablog.com/","url":"https://hogem.hatenablog.com/entry/20090601/1243862119","published":"2009-06-01 22:15:19","height":"190","author_url":"https://blog.hatena.ne.jp/hogem/"}