find-cmd

Homepage: https://www.gnu.org/software/emacs

Author: Philip Jackson

Summary

Build a valid find(1) command with sexps

Commentary

With this module you can build up a (hopefully) valid find(1)
string ready for the command line.  For example:

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

will become (un-wrapped):

    "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' \\) \\)"

Dependencies

Reverse dependencies