bug-gnu-utils
[Top][All Lists]
Advanced

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

Re: grep -r oddity


From: Alain Magloire
Subject: Re: grep -r oddity
Date: Fri, 26 Jan 2001 13:28:18 -0500 (EST)

> 
> I'm using grep 2.4.2 with linux.
> 
> If I have a directory structure as follows:
> >ls
> b/ text1
> >ls b
> text2
> >cat text1 b/text2
> HELLO TEXT1
> HELLO TEXT2
> 
> >grep -r LL *
> text1:HELLO TEXT1
> 
> >From the docs it would appear that -r is not working correctly.  Shouldn't
> the above sample output both files?  If not, what's the -r for?
> 
> I seem to recall an earlier grep working where it would print out both files.

This works fine with 2.4.2

# uname -rs
SunOS 5.8
# grep --version
grep (GNU grep) 2.4.2
...
# cat t1 b/t2
HELLO 1
HELLO
# grep -r LL .
./t1:HELLO 1
./b/t2:HELLO
# grep -r LL *
b/t2:HELLO
t1:HELLO 1
# ls -R
.:
b/   t1

./b:
t2

> 


-- 
au revoir, alain
----
Aussi haut que l'on soit assis, on n'est toujours assis que sur son cul !!!




reply via email to

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