News for hackers. Stuff that matters.
Re:Find is a beautiful tool by philjackson on Sunday July 24, 2011 @10:42AM (#2799462)
I like to write complex find commands with find-cmd which is bundled with emacs (disclaimer: I wrote it):

    (find-cmd '(prune (name ".svn" ".git" ".CVS"))
              '(and (or (name "*.pl" "*.pm" "*.t")
                        (mtime "+1"))
                    (fstype "nfs" "ufs"))))
becomes:

    "find '/home/phil/' \\( \\( -name '.svn' -or -name '.git' -or
      -name '.CVS' \\) -prune -or -true \\) \\( \\( \\( -name '*.pl'
      -or -name '*.pm' -or -name '*.t' \\) -or -mtime '+1' \\) -and \\(
      -fstype 'nfs' -or -fstype 'ufs' \\) \\)"
Re:Find is a beautiful tool by fexl on Sunday July 24, 2011 @01:31PM (#2799834)
Now that you mention -prune, I only recently figured out how to use it to exclude a specific path from a search, but my understanding is that of a trained dog.
Re:Find is a beautiful tool by Estragon on Sunday July 24, 2011 @11:36AM (#2799555)
If you extended this to run in emacs and put the results in a dired buffer on the fly, it'd be awesome!