On Wednesday 04,January,2012 08:01 PM, Wilko Fokken wrote:
On Wed, Jan 04, 2012 at 12:42:36PM +0100, pedro insua wrote:
On 4 January 2012 12:19, Wilko Fokken<[email protected]> wrote:
On Fri, Dec 30, 2011 at 12:04:31PM +0800, lina wrote:
Hi,
I don't know how to find one file out,
one file contains some numbers, like
7.9 2.4 4.2 12.2 and etc
I can't remember the file name. I tried:
$ grep -e "7.9" -e "2.4" -e "4.2" -e "12.2" */*
$ grep -e "7.9" -e "2.4" -e "4.2" -e "12.2" */*/*
I think .. is about files content, not file name.
Maybe this one? :
find . -type f -name "*7.9*" -exec grep -H . {} \;
W. Fokken
Thanks all,
find . -type f -name "*.txt" -exec grep -H "7.9" \{\} \
works well.
Best regards,
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]
Archive: http://lists.debian.org/[email protected]