From owner-freebsd-questions Mon Nov 11 16:11: 6 2002 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 3FA5137B401 for ; Mon, 11 Nov 2002 16:11:05 -0800 (PST) Received: from wonkity.com (wonkity.com [63.93.4.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8F2D043E4A for ; Mon, 11 Nov 2002 16:11:04 -0800 (PST) (envelope-from wblock@wonkity.com) Received: from wonkity.com (localhost.wonkity.com [127.0.0.1]) by wonkity.com (8.12.1/8.11.6) with ESMTP id gAC0AwuF043833; Mon, 11 Nov 2002 17:10:59 -0700 (MST) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.12.1/8.12.1/Submit) with ESMTP id gAC0AwBW043830; Mon, 11 Nov 2002 17:10:58 -0700 (MST)?g (envelope-from wblock@wonkity.com) Date: Mon, 11 Nov 2002 17:10:58 -0700 (MST) From: Warren Block To: Benoit Lacherez Cc: John Von Essen , questions@FreeBSD.ORG Subject: Re: awk to remove backet In-Reply-To: <20021111233517.A28946@milouz.boece.foo> Message-ID: 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 On Mon, 11 Nov 2002, Benoit Lacherez wrote: > The easiest is to try: > > % echo '(abc.com)' | sed 's/(\([^)]*\))/\1/g' > abc.com > % echo '(abc.com)' | sed 's/\(([\w]+)\)/\1/g' > (abc.com) Easier yet is echo '(abc)' | tr -d '()' (Which maybe is not what was wanted, but does what was asked. 8-) -Warren Block * Rapid City, South Dakota USA To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message