Function: eshell/gf

eshell/gf is a function alias and interactive for find-grep-dired, defined in find-dired.el.gz.

Signature

(eshell/gf DIR REGEXP)

Documentation

Find files in DIR that contain matches for REGEXP and start Dired on output.

The command run (after changing into DIR) is

  find . \( -type f -exec grep-program find-grep-options \
    -e REGEXP {} \; \) -ls

where the first string in the value of the variable find-ls-option specifies what to use in place of "-ls" as the final argument.

Key Bindings

Aliases

eshell/gf lookfor-dired (obsolete since 29.1)