Re: [gentoo-user] [OT] search for a string in a list of files but.....

2006-02-27 Thread Christian Heim
On Monday 27 February 2006 15:01, MC wrote:
 Hi list,
i need to search for a particular string inside a list of text
 files: i've thought of this very simple one:

 cat *.C | grep GetChi

 it works but however if the string is found it does not say in which
 of the file it has been found.

try this one:
grep -H GetChi *.C

-- 
Christian Heim [EMAIL PROTECTED]
Gentoo Linux Developer - vserver


pgpQgrDYB0qqv.pgp
Description: PGP signature


Re: [gentoo-user] [OT] search for a string in a list of files but.....

2006-02-27 Thread Marco Calviani
Hi Boris,

 try grep GetChi *.C

poor me, this was very easy. It was my fault because man grep says it all.

Many thanks for your help Boris,
MC

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] [OT] search for a string in a list of files but.....

2006-02-27 Thread Alexander Skwar
Marco Calviani wrote:
 Hi list,
i need to search for a particular string inside a list of text
 files: i've thought of this very simple one:
 
 cat *.C | grep GetChi
 
 it works but however if the string is found it does not say in which
 of the file it has been found.
 
 Is there a simple way to do it?

grep GetChi *.C


Alexander Skwar
-- 
Doubt isn't the opposite of faith; it is an element of faith.
-- Paul Tillich, German theologian.
-- 
gentoo-user@gentoo.org mailing list