From owner-freebsd-questions@FreeBSD.ORG Mon Dec 12 13:50:08 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D4DC916A41F for ; Mon, 12 Dec 2005 13:50:08 +0000 (GMT) (envelope-from martin@dc.cis.okstate.edu) Received: from dc.cis.okstate.edu (dc.cis.okstate.edu [139.78.100.219]) by mx1.FreeBSD.org (Postfix) with ESMTP id 80FD443D55 for ; Mon, 12 Dec 2005 13:50:06 +0000 (GMT) (envelope-from martin@dc.cis.okstate.edu) Received: from dc.cis.okstate.edu (localhost.cis.okstate.edu [127.0.0.1]) by dc.cis.okstate.edu (8.12.6/8.12.6) with ESMTP id jBCDo5hn019872 for ; Mon, 12 Dec 2005 07:50:05 -0600 (CST) (envelope-from martin@dc.cis.okstate.edu) Message-Id: <200512121350.jBCDo5hn019872@dc.cis.okstate.edu> To: freebsd-questions@freebsd.org Date: Mon, 12 Dec 2005 07:50:05 -0600 From: Martin McCormick Subject: Re: Regular Expression Trouble 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: Mon, 12 Dec 2005 13:50:08 -0000 Parv writes: >For even finer results, use word boundaries ... > > egrep '\bIN[^[:alnum:]]+A\b' file > egrep '\' file I sincerely thank all for your examples which I have saved for future reference. The word boundary test appears to work perfectly, but after looking at all the other examples, they should work also giving living proof that in UNIX, there are many perfectly valid ways to solve the same problem. Again, many thanks. Martin McCormick WB5AGZ Stillwater, OK OSU Information Technology Department Network Operations Group .-- -... ..... .- --. --..