From owner-freebsd-hackers Mon Nov 1 8:59: 1 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from rover.village.org (rover.village.org [204.144.255.49]) by hub.freebsd.org (Postfix) with ESMTP id E125D1526B for ; Mon, 1 Nov 1999 08:58:52 -0800 (PST) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (harmony.village.org [10.0.0.6]) by rover.village.org (8.9.3/8.9.3) with ESMTP id JAA61602; Mon, 1 Nov 1999 09:58:42 -0700 (MST) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (localhost.village.org [127.0.0.1]) by harmony.village.org (8.9.3/8.8.3) with ESMTP id KAA07548; Mon, 1 Nov 1999 10:00:50 -0700 (MST) Message-Id: <199911011700.KAA07548@harmony.village.org> To: Jacques Vidrine Subject: Re: Search a symbol in the source tree Cc: Tetsuro Teddy FURUYA (=?iso-2022-jp?B?GyRCOEVDKxsoQiAbJEJFL086GyhC?=) , zzhang@cs.binghamton.edu, freebsd-hackers@FreeBSD.ORG, nectar@nectar.com In-reply-to: Your message of "Sun, 17 Oct 1999 11:37:11 CDT." <19991017163712.3911B1D95@bone.nectar.com> References: <19991017163712.3911B1D95@bone.nectar.com> <19991018003944T.tfuruya@galois.tf.or.jp> Date: Mon, 01 Nov 1999 10:00:50 -0700 From: Warner Losh Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In message <19991017163712.3911B1D95@bone.nectar.com> Jacques Vidrine writes: : > $find . -name "*.c" -print -exec "egrep" "-i" "idt" {} \; | less : > Here , "idt" is a search string. : : That's because no one wants a separate invocation of egrep for : every file! find . -name \*.c | xargs egrep -i idt | less is shorter to type and will generally fork only a couple of times for the entire source tree. Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message