{"id":1027,"date":"2012-03-28T09:26:01","date_gmt":"2012-03-28T13:26:01","guid":{"rendered":"http:\/\/www.matthewgkeller.com\/blog\/?p=1027"},"modified":"2012-03-28T09:26:01","modified_gmt":"2012-03-28T13:26:01","slug":"find-delete","status":"publish","type":"post","link":"http:\/\/www.matthewgkeller.com\/blog\/2012\/03\/28\/find-delete\/","title":{"rendered":"find -delete"},"content":{"rendered":"<p>If I hear one more person recommend using a pipe to xargs or -exec rm -f {}\u00c2\u00a0 to the question &#8220;how can I make &#8216;find&#8217; delete the files it finds?&#8221; I&#8217;m going to scream. It&#8217;s really simple:<\/p>\n<pre>find \/wherever -mtime +7 -type f -delete<\/pre>\n<p>That&#8217;s it. Nothing to remember. No shelling (exec) or piping. Real easy. Real fast.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If I hear one more person recommend using a pipe to xargs or -exec rm -f {}\u00c2\u00a0 to the question &#8220;how can I make &#8216;find&#8217; delete the files it finds?&#8221; I&#8217;m going to scream. It&#8217;s really simple: find \/wherever -mtime &hellip; <a href=\"http:\/\/www.matthewgkeller.com\/blog\/2012\/03\/28\/find-delete\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,14,17],"tags":[59,79],"class_list":["post-1027","post","type-post","status-publish","format-standard","hentry","category-general-coding","category-rantstirades","category-work","tag-linux","tag-stupid"],"_links":{"self":[{"href":"http:\/\/www.matthewgkeller.com\/blog\/wp-json\/wp\/v2\/posts\/1027","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.matthewgkeller.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.matthewgkeller.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.matthewgkeller.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.matthewgkeller.com\/blog\/wp-json\/wp\/v2\/comments?post=1027"}],"version-history":[{"count":0,"href":"http:\/\/www.matthewgkeller.com\/blog\/wp-json\/wp\/v2\/posts\/1027\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.matthewgkeller.com\/blog\/wp-json\/wp\/v2\/media?parent=1027"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.matthewgkeller.com\/blog\/wp-json\/wp\/v2\/categories?post=1027"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.matthewgkeller.com\/blog\/wp-json\/wp\/v2\/tags?post=1027"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}