{"id":494,"date":"2016-03-07T14:35:30","date_gmt":"2016-03-07T14:35:30","guid":{"rendered":"http:\/\/www.haxed.me.uk\/?p=494"},"modified":"2016-03-07T14:35:30","modified_gmt":"2016-03-07T14:35:30","slug":"finding-stuff-quick-and-dirty-way","status":"publish","type":"post","link":"https:\/\/haxed.me.uk\/index.php\/2016\/03\/07\/finding-stuff-quick-and-dirty-way\/","title":{"rendered":"Finding Stuff quick and dirty way"},"content":{"rendered":"<p>Hey. So my good friend who is a support engineer was asking me how he could find mail log that wasn&#8217;t in the traditional location and he was scratching his head.<br \/>\nSo I put this together (which by the way is really bad), but not in a harmful way, it could just be more elegant. But since he is still learning , this seemed like a good time to introduce him to xargs.<\/p>\n<pre>\r\nfind \/ | grep mail | grep log | xargs -i ls -al {}\r\n<\/pre>\n<p>Nice and simple though and pretty much straight to the point, if the grep pipes are forgiven. (and wouldn&#8217;t blame you if they were not \ud83d\ude42 )<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hey. So my good friend who is a support engineer was asking me how he could find mail log that wasn&#8217;t in the traditional location and he was scratching his head. So I put this together (which by the way &hellip; <a href=\"https:\/\/haxed.me.uk\/index.php\/2016\/03\/07\/finding-stuff-quick-and-dirty-way\/\">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":[1],"tags":[],"class_list":["post-494","post","type-post","status-publish","format-standard","hentry","category-uncategorised"],"_links":{"self":[{"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/posts\/494","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/comments?post=494"}],"version-history":[{"count":1,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/posts\/494\/revisions"}],"predecessor-version":[{"id":495,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/posts\/494\/revisions\/495"}],"wp:attachment":[{"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/media?parent=494"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/categories?post=494"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/tags?post=494"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}