unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Finding files in a directory tree
@ 2002-11-14 14:47 Gerald.Jean
  0 siblings, 0 replies; 2+ messages in thread
From: Gerald.Jean @ 2002-11-14 14:47 UTC (permalink / raw)


Hello,

I have been using Emacs for quite some time and each time I need to find
where, in a directory tree, are located some file(s) I have to go back to
MS Explorer, which is a pain if I want to edit the file(s).  I now know
that the function to do that is "find-name-dired", but I can't figure out
how to use it.  The documentation says:

find-name-dired is an interactive compiled Lisp function in `find-dired'.
(find-name-dired DIR PATTERN)

Search DIR recursively for files matching the globbing pattern PATTERN,
and run dired on those files.
PATTERN is a shell wildcard (not an Emacs regexp) and need not be quoted.
The command run (after changing into DIR) is

    find . -name 'PATTERN' -ls

and if I look-up the documentation for "find" it says:

find is an autoloaded Lisp function in `cl-seq'.
[Arg list not available until function definition is loaded.]
not documented

All this may be very meaningful for old time Emacs-ers and / or Unix-ers but I can't figure out how to specify "PATTERN".  Specifying the
directory is no problem but stuff like "*.ps", for example, doesn't work for PATTERN.  I allways get the following error message:

  c:/latex/:
  find . \( -name '*.ps' \) -exec ls -ld {} \;
  Fichier introuvable - '*.ps'

  find exited abnormally with code 2 at Thu Nov 14 09:44:00

But there is files ending in ".ps" in that directory.


A few examples would be highly appreciated, thanks,

Gérald Jean
Analyste-conseil (statistiques), Actuariat
télephone            : (418) 835-4900 poste (7639)
télecopieur          : (418) 835-6657
courrier électronique: gerald.jean@spgdag.ca

"In God we trust all others must bring data"  W. Edwards Deming

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Finding files in a directory tree
       [not found] <mailman.1037301027.2689.help-gnu-emacs@gnu.org>
@ 2002-11-14 21:18 ` Richard V. Molen
  0 siblings, 0 replies; 2+ messages in thread
From: Richard V. Molen @ 2002-11-14 21:18 UTC (permalink / raw)


It sounds like Emacs is finding the M$ find.exe in its search path.

On a Linux system...

M-x find-name-dired <Ret> ~/ <Ret> phone <Ret>

I think you need a unix/Linux version of 'find' that runs on M$. This
version should be found first in the Emacs 'exec-path'.

-- 
Richard V. Molen

Warning!!
Signature under construction, safety glasses required.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-11-14 21:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.1037301027.2689.help-gnu-emacs@gnu.org>
2002-11-14 21:18 ` Finding files in a directory tree Richard V. Molen
2002-11-14 14:47 Gerald.Jean

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).