From owner-freebsd-questions@FreeBSD.ORG Thu Aug 12 11:36:00 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CA42810656B2 for ; Thu, 12 Aug 2010 11:36:00 +0000 (UTC) (envelope-from freebsd@qeng-ho.org) Received: from fileserver.home.qeng-ho.org (blue.qeng-ho.org [217.155.128.241]) by mx1.freebsd.org (Postfix) with ESMTP id 3D5A78FC17 for ; Thu, 12 Aug 2010 11:35:59 +0000 (UTC) Received: from fileserver.home.qeng-ho.org (localhost [127.0.0.1]) by fileserver.home.qeng-ho.org (8.14.3/8.14.3) with ESMTP id o7CBZwds016124; Thu, 12 Aug 2010 12:35:58 +0100 (BST) (envelope-from freebsd@qeng-ho.org) Message-ID: <4C63DC9E.3060705@qeng-ho.org> Date: Thu, 12 Aug 2010 12:35:58 +0100 From: Arthur Chance User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.1.11) Gecko/20100727 Thunderbird/3.0.6 MIME-Version: 1.0 To: "Jack L. Stone" References: <3.0.1.32.20100811180022.00ee4250@sage-american.com> In-Reply-To: <3.0.1.32.20100811180022.00ee4250@sage-american.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: Grepping a list of words X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Aug 2010 11:36:00 -0000 On 08/12/10 00:00, Jack L. Stone wrote: > Kindly appreciate help with how to grep (or similar) a list of words to > determine if any of them are in a file rather than grepping one word at a > time. fgrep, aka grep -F A snippet from "man grep": -F, --fixed-strings Interpret PATTERN as a list of fixed strings, separated by newlines, any of which is to be matched.