From owner-freebsd-questions Wed Feb 20 13:40: 9 2002 Delivered-To: freebsd-questions@freebsd.org Received: from lists.blarg.net (lists.blarg.net [206.124.128.17]) by hub.freebsd.org (Postfix) with ESMTP id CFFD337B416 for ; Wed, 20 Feb 2002 13:40:05 -0800 (PST) Received: from thig.blarg.net (thig.blarg.net [206.124.128.18]) by lists.blarg.net (Postfix) with ESMTP id 7D663BD0C; Wed, 20 Feb 2002 13:40:05 -0800 (PST) Received: from localhost.localdomain ([206.124.139.115]) by thig.blarg.net (8.9.3/8.9.3) with ESMTP id NAA18305; Wed, 20 Feb 2002 13:40:03 -0800 Received: (from jojo@localhost) by localhost.localdomain (8.11.6/8.11.3) id g1KLgFl01435; Wed, 20 Feb 2002 13:42:15 -0800 (PST) (envelope-from swear@blarg.net) To: "Mike Meyer" Cc: "F.Xavier Noria" , questions@FreeBSD.ORG, rene@xs4all.nl Subject: Re: how to search IN a bunch of files? References: <15476.3072.832733.781406@guru.mired.org> From: swear@blarg.net (Gary W. Swearingen) Date: 20 Feb 2002 13:42:15 -0800 In-Reply-To: <15476.3072.832733.781406@guru.mired.org> Message-ID: <8rit8rbzk8.t8r@localhost.localdomain> Lines: 8 User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.1 (Cuyahoga Valley) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG "Mike Meyer" writes: > Might I suggest a minor tweak to this? Use "xargs grep -H pattern", so > that in the unlikely case that you only have one file, you still get > the file name printed. Spoilsport! Now I can never again show off my cleverness by suggesting "xargs grep pattern /dev/null" to do that. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message