find file by content
Julian H. Stacey
jhs at berklix.com
Sun Oct 2 15:55:06 UTC 2011
"haihq" wrote:
>
>
> Hi all
>
> I use FreeBSD 7.2. I want find file by content in all computer.
This & previous question should not be posted to this list,
please see list remit you got when you subscribed.
This question also has nothing specific to FreeBSD,
it would be covered in a standard Unix tutorial or book,
use a search engine to find a Unix tutorial for beginners.
read manual, by typing
man find
Example solution:
find / -type f -exec grep -i "your phrase" {} /dev/null \;
of
find -X / -type f | xargs grep -l "your phrase"
If you dont understand the above, also type:
man find
man xargs
Cheers,
Julian
--
Julian Stacey, BSD Unix Linux C Sys Eng Consultants Munich http://berklix.com
Reply below, not above; Indent with "> "; Cumulative like a play script.
Format: Plain text. Not HTML, multipart/alternative, base64, quoted-printable.
Software Freedom Day, Muenchen: 22 Okt http://berklix.org/sfd/
More information about the ctm-users
mailing list