{"id":76,"date":"2008-08-21T20:02:04","date_gmt":"2008-08-22T01:02:04","guid":{"rendered":"http:\/\/www.timrosenblatt.com\/blog\/2008\/08\/21\/trash-aware-rm-for-osx-never-lose-a-file-again\/"},"modified":"2008-08-21T20:02:04","modified_gmt":"2008-08-22T01:02:04","slug":"trash-aware-rm-for-osx-never-lose-a-file-again","status":"publish","type":"post","link":"http:\/\/www.timrosenblatt.com\/blog\/2008\/08\/21\/trash-aware-rm-for-osx-never-lose-a-file-again\/","title":{"rendered":"Trash aware rm for OSX &#8212; never lose a file again"},"content":{"rendered":"<p>OK, so let&#8217;s say you&#8217;re an OSX user, and you use the command line a lot. I bet you&#8217;ve accidentally deleted a file using rm, and wished that it had gone to the Trash.<\/p>\n<p>We had this problem a few days ago, and fortunately the file was under version control. But we looked for a solution that would rm into the trash. There was only one solution and it didn&#8217;t work in Leopard (10.5)<\/p>\n<p>I mentioned this on Twitter, and my buddy <a href=\"http:\/\/jasonbuckner.com\/rmtrash\/\">Jason threw a working version of trash-aware-rm for OSX<\/a> together in no time flat. Check it out.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>OK, so let&#8217;s say you&#8217;re an OSX user, and you use the command line a lot. I bet you&#8217;ve accidentally deleted a file using rm, and wished that it had gone to the Trash. We had this problem a few days ago, and fortunately the file was under version control. But we looked for a &hellip; <a href=\"http:\/\/www.timrosenblatt.com\/blog\/2008\/08\/21\/trash-aware-rm-for-osx-never-lose-a-file-again\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Trash aware rm for OSX &#8212; never lose a file again&#8221;<\/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":[145,88],"tags":[233,232,230,231,229],"_links":{"self":[{"href":"http:\/\/www.timrosenblatt.com\/blog\/wp-json\/wp\/v2\/posts\/76"}],"collection":[{"href":"http:\/\/www.timrosenblatt.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.timrosenblatt.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.timrosenblatt.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.timrosenblatt.com\/blog\/wp-json\/wp\/v2\/comments?post=76"}],"version-history":[{"count":0,"href":"http:\/\/www.timrosenblatt.com\/blog\/wp-json\/wp\/v2\/posts\/76\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.timrosenblatt.com\/blog\/wp-json\/wp\/v2\/media?parent=76"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.timrosenblatt.com\/blog\/wp-json\/wp\/v2\/categories?post=76"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.timrosenblatt.com\/blog\/wp-json\/wp\/v2\/tags?post=76"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}