Re: ls -R | grep char_string
I heard that Christoph H. wrote this on 29/10/00:
> You are searching for a string in the name of all files in the
> current dir and subdirs, but I think you want to search for a string
> _within_ all files.
>
> Therefore you have to do something like that:
> find . -exec grep -H char_string {} \; 2>/dev/null
>
I think I may be missing the point here...
Wouldn't be easier to do:
grep -r char_string *
?
Regards, sena...
--
sena@decoy.ath.cx
http://decoy.ath.cx/~sena/
Reply to: