grep is always recursive

Preston Kutzner shizzlecash at gmail.com
Sat Jan 24 17:48:03 UTC 2009


On Jan 24, 2009, at 11:19 AM, Derek Broughton wrote:

> 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

Also, check your local .bashrc file to make sure any grep aliases  
aren't set, or are set how you want.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 194 bytes
Desc: This is a digitally signed message part
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20090124/4b70037d/attachment.sig>


More information about the ubuntu-users mailing list