RE: find
Sort of.
find . -type '*.c' -exec grep "my_text" {} \;
Or a more robust version:
find . -type '*.c' -exec grep "your text here" "./{}" \;
-----Original Message-----
From: showroom@worldapart.com [mailto:showroom@worldpart.com]
Sent: Wednesday, October 26, 2005 9:30 AM
To: debian-user@lists.debian.org
Subject: find
Hi,
I'm trying to find a word in a file using find.
I take a look at the man of find but...
All i see is to find files, perms, etc.
It's possible to find an word in a text file?
All i can do is this:
$find . -name *.c -print
Many thanks.
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact
listmaster@lists.debian.org
Reply to:
- Follow-Ups:
- Re: find
- From: Mariusz Kruk <kruk@rdc.pl>