Prev: dired-nstd.el Up: Tree Dired Extra

Feeding Find Output to Dired

   The `find-dired' command runs the `find' command in a buffer and
starts Dired on the inserted file lines, even while `find' is still
running.  For example, with `-type d' as argument, you will get a Dired
buffer that contains all subdirectories of a given directory, but none
of the other files.

   Note that `find' just gives you file lines, not inserted
subdirectories with associated headerlines as repeated use of the `i'
(`dired-maybe-insert-subdir') command would.  Also, the names contain
slashes if they are in a subdirectory, which never occurs in a normal
Dired buffer.  Dired understands these names anyway and you can for
example type `f' on such lines as usual.  However, while `find' is
still running you shouldn't type `i' to insert subdirectories, since
new `find' output is always appended at the end.  Use `f' or `o'
instead to dired the specific subdirectory in a new Dired buffer.
After `find' has finished (as indicated by a message and the modeline)
all Dired commands work as usual.

     Run `find' on a directory DIR, with find arguments ARGS, and go
     into dired-mode on a buffer of the output.  The command run (after
     changing into DIR) is
          find . \( ARGS \) -ls

     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

     Find files in directory DIR containing a regexp ARG and start
     Dired on output.  The command run (after changing into DIR) is
          find . -exec grep -s ARG {} \; -ls

automatically generated by info2www