3 ms·
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"))
by philjackson 15y ago
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' \\) \\)"