Gentoo Archives: gentoo-user

From: Alexander Skwar <listen@×××××××××××××××.name>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] [OT] search for a string in a list of files but.....
Date: Mon, 27 Feb 2006 15:19:36
Message-Id: 4403169B.1030106@mid.message-center.info
In Reply to: [gentoo-user] [OT] search for a string in a list of files but..... by Marco Calviani
1 Marco Calviani wrote:
2 > Hi list,
3 > i need to search for a particular string inside a list of text
4 > files: i've thought of this very simple one:
5 >
6 > cat *.C | grep GetChi
7 >
8 > it works but however if the string is found it does not say in which
9 > of the file it has been found.....
10 >
11 > Is there a simple way to do it?
12
13 grep GetChi *.C
14
15
16 Alexander Skwar
17 --
18 Doubt isn't the opposite of faith; it is an element of faith.
19 -- Paul Tillich, German theologian.
20 --
21 gentoo-user@g.o mailing list