bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Fw: grep recursive problem


From: Eli Zaretskii
Subject: Re: Fw: grep recursive problem
Date: Fri, 20 Oct 2006 08:25:31 +0200

> From: "dan1" <address@hidden>
> Date: Thu, 19 Oct 2006 15:04:26 +0200
> 
> I am trying to find text in some files and it works fine when I type the 
> following command from inside the directory where the file contains the text 
> searched for:
> grep -r -i i80word *.php
> 
> However if I go one directory up and type the same command, there is no 
> result at all, like if the '-r' otion would not be taken into account. I 
> tried --recursive but the result is the same.

This is a misunderstanding of what --recursive does.  Here's the
correct command that will do what you want:

  grep -r -i i80word * --include="*.php"




reply via email to

[Prev in Thread] Current Thread [Next in Thread]