δΊ 2012-1-4 19:26, Wilko Fokken ει:
On Tue, Dec 27, 2011 at 08:57:55PM +0800, lina wrote:
Hi,
I have two questions, wish to get advice,
Question 1:
For a series of files:
cat a_*.o* | grep "WARNING"
some file like a_1.o12 has WARNING, but others does not have WARNING
How can I let grep returns the filename?
try "grep -H"
in order to get the filename.
Maybe you can try
$ grep -lR "WARNING" /pathname
--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/4f068bd4.70...@gmail.com