can grep use filenames from stdin?

Thompson Harmon [US], Stanley W. Stanley.Harmon at sperry.ngc.com
Sun Mar 18 10:16:06 PDT 2007


find . -name \*.c
grep -l -e somepattern `!!`

The above commands will give you the names of the c files containing somepattern.

Stan


-----Original Message-----
From: busybox-bounces at busybox.net <busybox-bounces at busybox.net>
To: busybox at busybox.net <busybox at busybox.net>
Sent: Sun Mar 18 04:06:36 2007
Subject: can grep use filenames from stdin?

can we make grep get filenames from stdin like:

find . -name \*.c | grep -l -e somepattern

-
_______________________________________________
busybox mailing list
busybox at busybox.net
http://busybox.net/cgi-bin/mailman/listinfo/busybox



More information about the busybox mailing list