Gentoo Archives: gentoo-user

From: Boris Fersing <kernelsensei@g.o>
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 14:16:01
Message-Id: 97c95c3d0602270609l6812bfa8n@mail.gmail.com
In Reply to: [gentoo-user] [OT] search for a string in a list of files but..... by Marco Calviani
1 2006/2/27, Marco Calviani <marco.calviani@×××××.com>:
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 > Thanks in advance,
14 > MC
15 >
16 hi,
17
18 try grep GetChi *.C
19
20 HTH.
21
22 Boris.
23 > --
24 > gentoo-user@g.o mailing list
25 >
26 >
27 >
28
29
30 --
31 Quiconque me parle de Dieu en veut à ma bourse ou à ma liberté.
32
33 --
34 gentoo-user@g.o mailing list

Replies

Subject Author
Re: [gentoo-user] [OT] search for a string in a list of files but..... Marco Calviani <marco.calviani@×××××.com>