[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
find.el --- Build a valid find(1) command with sexps
From: |
Phil Jackson |
Subject: |
find.el --- Build a valid find(1) command with sexps |
Date: |
Mon, 31 Mar 2008 18:15:33 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) |
Hi all,
I don't think I've ever written out a (semi-complex) find(1) command
that has worked first time. I've written this module so that now I can
screw it up in sexp notation too.
As the commentary states:
(find (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' \\) \\)"
I'm /still/ learning elisp so commentary (critical or not) is welcomed.
find.el
Description: application/emacs-lisp
Cheers,
Philip Jackson
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- find.el --- Build a valid find(1) command with sexps,
Phil Jackson <=