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
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
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
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
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
5 matches
Mail list logo