grep is always recursive

Loïc Grenié loic.grenie at
Sat Jan 24 19:07:51 UTC 2009

2009/1/24 Hal Burgiss <hal at>:
> On Sat, Jan 24, 2009 at 07:17:32PM +0100, Loïc Grenié wrote:
>>     Do you have the possibility to try your recursive grep
>>   on the computer where grep is not recursive and the
>>   non-recursive grep on the computer where grep is
>>   recursive (cross test) ?
> Sure, but I don't follow how to do this, like 'ssh $computer2 grep a
> *' ?

scp $computer2:/bin/grep /tmp
/tmp/grep a *
scp /bin/grep $computer2:/tmp
ssh $computer2
(on computer2)
/tmp/grep a *

> On my home (problem) system, I have not found a way to do a
> non-recursive grep, short of chaining it with 'find'. Doing
>  GREP_OPTIONS=''; grep a *

GREP_OPTIONS='' grep a *
(without ;)


More information about the ubuntu-users mailing list