Page 1 of 1

find string in my files

Posted: Wed Jan 28, 2004 5:28 pm
by Brujah
Hy folks,

sometimes I have the problem that I can't remember in which files I use a specific variable.
So I want to display all files that include this string and it would be great to display the lines of code too.

I tried
cat *.pb ! grep variable

But in this way I can't find out the filenames.

Is there another way to do it ?

Markus

Posted: Wed Jan 28, 2004 6:16 pm
by Saboteur
grep variable *.pb

Posted: Sun Nov 07, 2004 9:00 am
by Inner
cat *.pb | grep veriable
8O