grep is always recursive

Derek Broughton derek at
Sat Jan 24 17:19:31 UTC 2009

Chris G wrote:

> On Sat, Jan 24, 2009 at 10:48:07AM -0500, Hal Burgiss wrote:
>> Does anyone know of a setting anywhere in Ubuntu (8.04), that would
>> cause grep to *always* behave as if it were run as 'grep -r'? My home
>> system always greps recursively, which is highly annoying.
> Is it aliased by any chance?  The default installation certainly
> aliases 'ls' and a couple of other things which, personally, I find a
> real nuisance and I remove the aliases as soon as I can.

Aliased, or symlinked via /etc/alternatives to rgrep?

Also, do: export | grep GREP

I think it should be possible to set this via GREP_OPTIONS

More information about the ubuntu-users mailing list