malekmustaq:
Thanks for your post. Your example works. But I've found it applies to the more general case in which an entire tree must be search for a given string. So,if I have ~/.d1/.d11/.d111/.f1 containing string 'Yo soy aquel.', then
~# grep -r aque ./.d1
will output
./.d1/.d11/.d111/.f1:Yo soy aquel.
Furthermore, even
~# cd .d1
~/.d1# grep -r aque .
will print the same path.
What I used to do is 'grep -r PATTERN *' and this didn't work if there was a component beginning with '.' in the
path to the file containing PATTERN. But, as i92guboj suggests, it will work previous 'shopt -s dotglob'.
Thanks again, malekmustaq and I hope you remain a slacker,
the number 2 distribution in the Linux-distributions sub-
forum list (although it should be considered the first, given that Linux from Scratch, as the name implies, is not
properly speaking a distribution). Hasta mas ver.
|