{"id":7070,"date":"2018-11-07T17:50:18","date_gmt":"2018-11-07T08:50:18","guid":{"rendered":"http:\/\/umezawa.dyndns.info\/wordpress\/?p=7070"},"modified":"2018-11-07T17:50:18","modified_gmt":"2018-11-07T08:50:18","slug":"xargs-%e3%81%af%e5%85%a5%e5%8a%9b%e3%81%8c%e7%a9%ba%e3%81%a7%e3%82%821%e5%9b%9e%e3%81%af%e5%ae%9f%e8%a1%8c%e3%81%99%e3%82%8b","status":"publish","type":"post","link":"http:\/\/umezawa.dyndns.info\/wordpress\/?p=7070","title":{"rendered":"xargs \u306f\u5165\u529b\u304c\u7a7a\u3067\u30821\u56de\u306f\u5b9f\u884c\u3059\u308b"},"content":{"rendered":"<p>xargs \u30b3\u30de\u30f3\u30c9\u306f\u5165\u529b\u304c\u7a7a\u3067\u3042\u3063\u3066\u3082\uff08\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306f\uff091\u56de\u306f\u5b9f\u884c\u3057\u307e\u3059\u3002\u306a\u306e\u3067\u3001<\/p>\n<blockquote>\n<pre>find \/path\/to\/file <i>\u30de\u30c3\u30c1\u3057\u306a\u3044\u6761\u4ef6\u5f0f<\/i> | xargs ls<\/pre>\n<\/blockquote>\n<p>\u3068\u304b\u3084\u308b\u3068\u7d50\u679c\u7684\u306b\u30ab\u30ec\u30f3\u30c8\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092 ls \u3057\u307e\u3059\u3002\u7a7a\u306e\u5834\u5408\u306b\u5b9f\u884c\u3057\u305f\u304f\u306a\u3044\u5834\u5408\u306f <code>--no-run-if-empty<\/code> \u3092\u4ed8\u3051\u307e\u3059\uff08GNU \u62e1\u5f35\uff09\u3002<\/p>\n<p><!--more--><\/p>\n<p>\u3068\u3053\u308d\u3067\u3001\u540c\u69d8\u306b<\/p>\n<blockquote>\n<pre>find \/path\/to\/file <i>\u30de\u30c3\u30c1\u3057\u306a\u3044\u6761\u4ef6\u5f0f<\/i> | xargs rm -rf<\/pre>\n<\/blockquote>\n<p>\u3068\u304b\u3084\u3063\u305f\u3089\u30ab\u30ec\u30f3\u30c8\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u6d88\u3057\u98db\u3070\u3057\u3066\u3057\u307e\u3046\u306e\u3067\u306f\uff1f\u3068\u4e00\u77ac\u601d\u3063\u305f\u3093\u3067\u3059\u304c\u3001 rm \u306f ls \u3068\u9055\u3063\u3066\u5f15\u6570\u304c\u7121\u3044\u5834\u5408\u306f\u4f55\u3082\u3057\u306a\u3044\u306e\u3067\u5b89\u5fc3\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>xargs \u30b3\u30de\u30f3\u30c9\u306f\u5165\u529b\u304c\u7a7a\u3067\u3042\u3063\u3066\u3082\uff08\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306f\uff091\u56de\u306f\u5b9f\u884c\u3057\u307e\u3059\u3002\u306a\u306e\u3067\u3001 find \/path\/to\/file \u30de\u30c3\u30c1\u3057\u306a\u3044\u6761\u4ef6\u5f0f | xargs ls \u3068\u304b\u3084\u308b\u3068\u7d50\u679c\u7684\u306b\u30ab\u30ec\u30f3\u30c8\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092 ls \u3057\u307e\u3059 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[27],"tags":[],"class_list":["post-7070","post","type-post","status-publish","format-standard","hentry","category-technology"],"_links":{"self":[{"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/7070","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=7070"}],"version-history":[{"count":3,"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/7070\/revisions"}],"predecessor-version":[{"id":7073,"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/7070\/revisions\/7073"}],"wp:attachment":[{"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7070"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=7070"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=7070"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}