in reply to text search in a file
grep -Rl <basedir> <string to macth>
The 'R' switch is grep recursive, and the 'l' switch is to have grep only output the filenames with matches, instead of the full lines.grep -Rl <string to macth> <basedir>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: text search in a file
by davidrw (Prior) on Aug 10, 2005 at 22:18 UTC | |
|
Re^2: text search in a file
by kwaping (Priest) on Aug 10, 2005 at 22:22 UTC | |
by Tanktalus (Canon) on Aug 11, 2005 at 01:55 UTC | |
by graff (Chancellor) on Aug 11, 2005 at 11:35 UTC | |
by davis (Vicar) on Aug 11, 2005 at 09:28 UTC | |
by gellyfish (Monsignor) on Aug 11, 2005 at 09:34 UTC | |
by kwaping (Priest) on Aug 11, 2005 at 15:41 UTC | |
by Fletch (Bishop) on Aug 11, 2005 at 02:52 UTC | |
|
Re^2: text search in a file
by goosefairy (Novice) on Aug 10, 2005 at 22:07 UTC |