emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

find-grep default run string


From: jidanni
Subject: find-grep default run string
Date: Tue, 28 Aug 2007 04:00:21 +0800

Gentlemen, allow us to address this prompt, from M-x find-grep:
Run find (like this): find . -type f -print0 | xargs -0 -e grep -nH -e

Well gosh, at column 70, there's little room to get a word in
edgewise.

Let's shorten it up:
Run find (like this): find . -type f -print0 | xargs -0 -e grep -nH -e
Run: find . -type f -print0 | xargs -0 -e grep -nH -e
Run: find . -type f -print0|xargs -0 -e grep -nH -e
Run: find . -type f -print0|xargs -0e grep -nHe
Run: find -type f -print0|xargs -0e grep -nHe
Run: find -type f -print0|xargs -0e grep -nH
Works for modern find(1), etc.

P.S., man xargs says
 --eof[=eof-str], -e[eof-str]
        This option is a synonym for the  `-E'  option.   Use  `-E'
        instead, because it is POSIX compliant while this option is
        not.
So:
Run: find -type f -print0|xargs -0E grep -nH
But that gives an error message, so maybe just use
Run: find -type f -print0|xargs -0 grep -nH




reply via email to

[Prev in Thread] Current Thread [Next in Thread]