Date: Sat, 30 May 2009 17:57:14 +0200 (CEST) From: Wojciech Puchar <wojtek@wojtek.tensor.gdynia.pl> To: Mel Flynn <mel.flynn+fbsd.questions@mailing.thruhere.net> Cc: Valentin Bud <valentin.bud@gmail.com>, freebsd-questions@freebsd.org, Zbigniew Szalbot <z.szalbot@lcwords.com> Subject: Re: find and searching for specific expression in files Message-ID: <alpine.BSF.2.00.0905301755170.18381@wojtek.tensor.gdynia.pl> In-Reply-To: <200905301412.50958.mel.flynn%2Bfbsd.questions@mailing.thruhere.net> References: <dd6b168d2af9ddbcfc52e5c0397e4d6a.squirrel@relay.lc-words.com> <80cddf609e38046ffa0ce3f2bdab235c.squirrel@relay.lc-words.com> <139b44430905300456x62bf9c0ybf46bcab6b64e25@mail.gmail.com> <200905301412.50958.mel.flynn%2Bfbsd.questions@mailing.thruhere.net>
next in thread | previous in thread | raw e-mail | index | archive | help
>> because it tells you the file in which the text pattern was found :). > > Discouraged because: > - it's possible to hit maxarglen if the root directory has many > subdirectories. xargs is usefull too. i would it as forking for each file will make processing really slow. xargs can cut input data into given chunks with -n option, so grep will be called for say 100 files at once.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.00.0905301755170.18381>