{"id":279,"date":"2013-08-09T23:57:42","date_gmt":"2013-08-10T06:57:42","guid":{"rendered":"http:\/\/www.lorrin.org\/blog\/?p=279"},"modified":"2013-08-09T23:57:42","modified_gmt":"2013-08-10T06:57:42","slug":"gnu-find-on-os-x","status":"publish","type":"post","link":"https:\/\/www.lorrin.org\/blog\/2013\/08\/09\/gnu-find-on-os-x\/","title":{"rendered":"GNU find on OS X"},"content":{"rendered":"<p>The GNU version of find has some nice features (like <code>-readable<\/code>). You can install it with MacPorts using <code>sudo port install findutils<\/code>. However, this installs it as <code>gfind<\/code>. There are some references on the web to using the <code>+with_default_names<\/code> variant to avoid this, but a quick check of <code>port variants findutils<\/code> reveals that there is no such variant. This is <a href=\"https:\/\/trac.macports.org\/ticket\/20748\" title=\"#20748 Remove +with_default_names and use a specific path for unprefixed binaries\">intentional<\/a>. The new approach is that <code>\/opt\/local\/libexec\/gnubin\/<\/code> contains symlinks with the native names. So add this directory to your path as well and you&#8217;re all set.<\/p>\n<p>For more GNU goodness, check out the <code>md5sha1sum<\/code> package (for <code>md5sum<\/code>) as well as <code>coreutils<\/code>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The GNU version of find has some nice features (like -readable). You can install it with MacPorts using sudo port install findutils. However, this installs it as gfind. There are some references on the web to using the +with_default_names variant to avoid this, but a quick check of port variants findutils reveals that there is <a href='https:\/\/www.lorrin.org\/blog\/2013\/08\/09\/gnu-find-on-os-x\/' class='excerpt-more'>[&#8230;]<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[37],"tags":[83,82,67],"_links":{"self":[{"href":"https:\/\/www.lorrin.org\/blog\/wp-json\/wp\/v2\/posts\/279"}],"collection":[{"href":"https:\/\/www.lorrin.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.lorrin.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.lorrin.org\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.lorrin.org\/blog\/wp-json\/wp\/v2\/comments?post=279"}],"version-history":[{"count":2,"href":"https:\/\/www.lorrin.org\/blog\/wp-json\/wp\/v2\/posts\/279\/revisions"}],"predecessor-version":[{"id":281,"href":"https:\/\/www.lorrin.org\/blog\/wp-json\/wp\/v2\/posts\/279\/revisions\/281"}],"wp:attachment":[{"href":"https:\/\/www.lorrin.org\/blog\/wp-json\/wp\/v2\/media?parent=279"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.lorrin.org\/blog\/wp-json\/wp\/v2\/categories?post=279"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.lorrin.org\/blog\/wp-json\/wp\/v2\/tags?post=279"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}