unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* re Modifying default find-grep command string
@ 2011-10-25 15:16 robert somerville
  2011-10-25 16:06 ` Jambunathan K
  0 siblings, 1 reply; 5+ messages in thread
From: robert somerville @ 2011-10-25 15:16 UTC (permalink / raw)
  To: help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 293 bytes --]

can somebody explain to me (a lisp beginner) how to modify the find-grep
default string ??

the default is:
 find . -type f -print0 | "xargs" -0 -e grep -nH -e

i would like something like :

 find ..  -name "*.cxx"   -print0 | "xargs" -0 -e grep -inH -e


thanks in advance
Robert Somerville

[-- Attachment #2: Type: text/html, Size: 381 bytes --]

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

* Re: re Modifying default find-grep command string
  2011-10-25 15:16 re Modifying default find-grep command string robert somerville
@ 2011-10-25 16:06 ` Jambunathan K
  2011-10-25 16:43   ` robert somerville
  0 siblings, 1 reply; 5+ messages in thread
From: Jambunathan K @ 2011-10-25 16:06 UTC (permalink / raw)
  To: robert somerville; +Cc: help-gnu-emacs


Does 

M-x rgrep

work for you?

> can somebody explain to me (a lisp beginner) how to modify the
> find-grep default string ??
>
> the default is:
>  find . -type f -print0 | "xargs" -0 -e grep -nH -e
>
> i would like something like :
>
>  find ..  -name "*.cxx"   -print0 | "xargs" -0 -e grep -inH -e
>
>
> thanks in advance
> Robert Somerville
>
>
>
>
>

-- 



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

* Re: re Modifying default find-grep command string
  2011-10-25 16:06 ` Jambunathan K
@ 2011-10-25 16:43   ` robert somerville
  2011-10-25 16:55     ` Perry Smith
  0 siblings, 1 reply; 5+ messages in thread
From: robert somerville @ 2011-10-25 16:43 UTC (permalink / raw)
  To: Jambunathan K; +Cc: help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 728 bytes --]

it seems like a very good start !!

If i can do the following, i will be very pleased !!

1) how (syntax) to specify multiple file types, different from the default?
2) where/how  to change the default string

p.s. on a linux platform

On Tue, Oct 25, 2011 at 10:06 AM, Jambunathan K <kjambunathan@gmail.com>wrote:

>
> Does
>
> M-x rgrep
>
> work for you?
>
> > can somebody explain to me (a lisp beginner) how to modify the
> > find-grep default string ??
> >
> > the default is:
> >  find . -type f -print0 | "xargs" -0 -e grep -nH -e
> >
> > i would like something like :
> >
> >  find ..  -name "*.cxx"   -print0 | "xargs" -0 -e grep -inH -e
> >
> >
> > thanks in advance
> > Robert Somerville
> >
> >
> >
> >
> >
>
> --
>

[-- Attachment #2: Type: text/html, Size: 1202 bytes --]

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

* Re: re Modifying default find-grep command string
  2011-10-25 16:43   ` robert somerville
@ 2011-10-25 16:55     ` Perry Smith
  2011-10-25 17:24       ` robert somerville
  0 siblings, 1 reply; 5+ messages in thread
From: Perry Smith @ 2011-10-25 16:55 UTC (permalink / raw)
  To: robert somerville; +Cc: help-gnu-emacs, Jambunathan K

[-- Attachment #1: Type: text/plain, Size: 1240 bytes --]


On Oct 25, 2011, at 11:43 AM, robert somerville wrote:

> it seems like a very good start !! 
> 
> If i can do the following, i will be very pleased !!
> 
> 1) how (syntax) to specify multiple file types, different from the default?

If you look at the help for rgrep, it mentions grep-files-aliases.

You can add aliases.   Click "customize" and hopefully it will be simple enough for you to add to it.  Then specify the new alias in the 2nd prompt.

> 2) where/how  to change the default string 

Not clear which default string you are referring to.  The default for the files to search changes (somehow) based upon the current buffer.

HTH,
pedz


> 
> p.s. on a linux platform
> 
> On Tue, Oct 25, 2011 at 10:06 AM, Jambunathan K <kjambunathan@gmail.com> wrote:
> 
> Does
> 
> M-x rgrep
> 
> work for you?
> 
> > can somebody explain to me (a lisp beginner) how to modify the
> > find-grep default string ??
> >
> > the default is:
> >  find . -type f -print0 | "xargs" -0 -e grep -nH -e
> >
> > i would like something like :
> >
> >  find ..  -name "*.cxx"   -print0 | "xargs" -0 -e grep -inH -e
> >
> >
> > thanks in advance
> > Robert Somerville
> >
> >
> >
> >
> >
> 
> --
> 


[-- Attachment #2: Type: text/html, Size: 2089 bytes --]

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

* Re: re Modifying default find-grep command string
  2011-10-25 16:55     ` Perry Smith
@ 2011-10-25 17:24       ` robert somerville
  0 siblings, 0 replies; 5+ messages in thread
From: robert somerville @ 2011-10-25 17:24 UTC (permalink / raw)
  To: Perry Smith; +Cc: help-gnu-emacs, Jambunathan K

[-- Attachment #1: Type: text/plain, Size: 1402 bytes --]

yes, this is what i was looking for, thanks , much appreciated

Cheers;
Robert Somerville

On Tue, Oct 25, 2011 at 10:55 AM, Perry Smith <pedzsan@gmail.com> wrote:

>
> On Oct 25, 2011, at 11:43 AM, robert somerville wrote:
>
> it seems like a very good start !!
>
> If i can do the following, i will be very pleased !!
>
> 1) how (syntax) to specify multiple file types, different from the default?
>
>
> If you look at the help for rgrep, it mentions grep-files-aliases.
>
> You can add aliases.   Click "customize" and hopefully it will be simple
> enough for you to add to it.  Then specify the new alias in the 2nd prompt.
>
> 2) where/how  to change the default string
>
>
> Not clear which default string you are referring to.  The default for the
> files to search changes (somehow) based upon the current buffer.
>
> HTH,
> pedz
>
>
>
> p.s. on a linux platform
>
> On Tue, Oct 25, 2011 at 10:06 AM, Jambunathan K <kjambunathan@gmail.com>wrote:
>
>>
>> Does
>>
>> M-x rgrep
>>
>> work for you?
>>
>> > can somebody explain to me (a lisp beginner) how to modify the
>> > find-grep default string ??
>> >
>> > the default is:
>> >  find . -type f -print0 | "xargs" -0 -e grep -nH -e
>> >
>> > i would like something like :
>> >
>> >  find ..  -name "*.cxx"   -print0 | "xargs" -0 -e grep -inH -e
>> >
>> >
>> > thanks in advance
>> > Robert Somerville
>> >
>> >
>> >
>> >
>> >
>>
>> --
>>
>
>
>

[-- Attachment #2: Type: text/html, Size: 2435 bytes --]

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

end of thread, other threads:[~2011-10-25 17:24 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-25 15:16 re Modifying default find-grep command string robert somerville
2011-10-25 16:06 ` Jambunathan K
2011-10-25 16:43   ` robert somerville
2011-10-25 16:55     ` Perry Smith
2011-10-25 17:24       ` robert somerville

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).