Re: SUSE 10.1 - any issues with grep recursion?



houghi wrote:

bobmct wrote:
'morning;

Is anyone aware of any issues with grep? Over the past few weeks I've
been having difficulties with recursion so I've had to navigate
directories
manually. But this is getting annoying.

This morning I've been working on my apache2 config and trying to do a
simple grep search like this:

/etc/apache2> grep -r SSLEngine *.conf

And I've tried the switch variants of:

-R, --recursive, -d recurse

All with no better results.
A search of google doesn't show any issues. My aliases are not doing
anything with grep.

Any ideas?

Yes, there is no file that contains that string and ends with *.conf
[19:14:07] [/etc/apache2]
root@penne : grep -r SSLEngine *.conf
[19:14:25] [/etc/apache2]
root@penne : grep -r SSLEngine *
vhosts.d/vhost-ssl.template: SSLEngine on
[19:14:27] [/etc/apache2]
root@penne : grep -r LoadModule *.conf
sysconfig.d/loadmodule.conf:LoadModule access_module \
/usr/lib/apache2-prefork/mod_access.so
<snip>

Well, I thing either you are not understanding my question or I am not
understanding your responses...

The *.conf was the file(s) to look in for the SSLEngine string.

To verify what I am experiencing I've tried recursing with ls. Here are
some examples from my home machine running 10.1:

/etc/apache2> ls -1 -R *.conf
default-server.conf
errors.conf
httpd.conf
listen.conf
mod_autoindex-defaults.conf
mod_info.conf
mod_log_config.conf
mod_mime-defaults.conf
mod_status.conf
mod_userdir.conf
mod_usertrack.conf
server-tuning.conf
ssl-global.conf
uid.conf

Even though I explicitly stated -R (Recurse) on the command line you can
notice that there was no recursion.

Now, here the results of the find command:

/etc/apache2> find . -name "*.conf" -print
../mod_mime-defaults.conf
../errors.conf
../extra/httpd-languages.conf
../extra/httpd-dav.conf
../extra/httpd-manual.conf
../extra/httpd-multilang-errordoc.conf
../extra/httpd-default.conf
../extra/httpd-autoindex.conf
../extra/httpd-mpm.conf
../extra/httpd-ssl.conf
../extra/httpd-vhosts.conf
../extra/httpd-userdir.conf
../extra/httpd-info.conf
../uid.conf
../mod_userdir.conf
../mod_autoindex-defaults.conf
find: ./ssl.key: Permission denied
../conf.d/php4.conf
../conf.d/apache2-manual.conf
../conf.d/mailman.conf
../mod_log_config.conf
../server-tuning.conf
../httpd.conf
../listen.conf
../mod_info.conf
../default-server.conf
../ssl-global.conf
../mod_status.conf
../vhosts.d/yast2_vhosts.conf
../mod_usertrack.conf
../sysconfig.d/loadmodule.conf
../sysconfig.d/include.conf
../sysconfig.d/global.conf
ssysop@0:/etc/apache2> find . -name "*.conf" -print
../mod_mime-defaults.conf
../errors.conf
../extra/httpd-languages.conf
../extra/httpd-dav.conf
../extra/httpd-manual.conf
../extra/httpd-multilang-errordoc.conf
../extra/httpd-default.conf
../extra/httpd-autoindex.conf
../extra/httpd-mpm.conf
../extra/httpd-ssl.conf
../extra/httpd-vhosts.conf
../extra/httpd-userdir.conf
../extra/httpd-info.conf
../uid.conf
../mod_userdir.conf
../mod_autoindex-defaults.conf
find: ./ssl.key: Permission denied
../conf.d/php4.conf
../conf.d/apache2-manual.conf
../conf.d/mailman.conf
../mod_log_config.conf
../server-tuning.conf
../httpd.conf
../listen.conf
../mod_info.conf
../default-server.conf
../ssl-global.conf
../mod_status.conf
../vhosts.d/yast2_vhosts.conf
../mod_usertrack.conf
../sysconfig.d/loadmodule.conf
../sysconfig.d/include.conf
../sysconfig.d/global.conf
/etc/apache2>

You can clearly see that recursion DID occur. So, what happening to my
recursion capability on my boxen???

Anywhere you can think that I should look? Remember, I checked alias and I
also tried all variations for recursion as explained in the man ls command.

Hmmmm.

Bob
.



Relevant Pages

  • Re: SUSE 10.1 - any issues with grep recursion?
    ... Is anyone aware of any issues with grep? ... there is no file that contains that string and ends with *.conf ... root@penne: grep -r SSLEngine *.conf ... notice that there was no recursion. ...
    (alt.os.linux.suse)
  • RE: Recursive Searches
    ... You can re-run the dB update by running "updatedb", but that can take a few ... grep -r "some string" /some/path ... Recursion works for neither ls no grep. ... unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe ...
    (RedHat)
  • RE: Recursive Searches
    ... If you were trying to recursively search for a string in a file ... grep -r "some string" /some/path ... Recursion works for neither ls no grep. ... unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe ...
    (RedHat)
  • Re: find command : only print the file name matches
    ... > I am using this find command to find a string, ... I wonder how to manipulate the command so that only the ... Then I thought you'd be interested in doing just with a recursive grep :-) ... Mind, that in your case, mixing the *.h and the recursion limits the ...
    (comp.unix.shell)
  • Re: SUSE 10.1 - any issues with grep recursion?
    ... Is anyone aware of any issues with grep? ... simple grep search like this: ... there is no file that contains that string and ends with *.conf ... root@penne: grep -r SSLEngine *.conf ...
    (alt.os.linux.suse)