Re: about find

2005-10-10 Thread Mariusz Kruk
Michael Marsh napisaƂ(a): I'd use $ find / -name '*' -exec grep -l "welcome here" {} \; Aaaargh. One of the ugliest monsters I've ever seen ;-P The nice thing about using find is that you can limit the depth of the search, restrict it to directories on the current filesystem, specify a more

Re: about find

2005-10-08 Thread Michael Marsh
On 10/8/05, Maximillian Murphy <[EMAIL PROTECTED]> wrote: > I'd always include a -type for something like that, otherwise what > happens is that grep tries to run on some pipe in /dev/ and hangs forever. > > find / -name '*' -type f -exec grep -l "welcome here" {} \; Good point. I usually only ru

Re: about find

2005-10-08 Thread Maximillian Murphy
Michael Marsh wrote: On 10/8/05, Nevruz Mesut Sahin <[EMAIL PROTECTED]> wrote: Hello how can I find files which contents a string in it. For example /www/xyz/hdx.php. File hdx.php conteins "welcome here" and I want to seach all system( / ) which conteins "welcome here" then machine shows /ww

Re: about find

2005-10-08 Thread Michael Marsh
On 10/8/05, Nevruz Mesut Sahin <[EMAIL PROTECTED]> wrote: > Hello how can I find files which contents a string in it. For example > /www/xyz/hdx.php. File hdx.php conteins "welcome here" and I want to seach > all system( / ) which conteins "welcome here" then machine shows > /www/xyz/hdx.php. Than

Re: about find

2005-10-08 Thread Dick Davies
grep -r "welcome here" / On 08/10/05, Nevruz Mesut Sahin <[EMAIL PROTECTED]> wrote: > Hello how can I find files which contents a string in it. For example > /www/xyz/hdx.php. File hdx.php conteins "welcome here" and I want to seach > all system( / ) which conteins "welcome here" then machine s