Date: Mon, 11 Nov 2002 17:10:58 -0700 (MST) From: Warren Block <wblock@wonkity.com> To: Benoit Lacherez <blacherez@ac-bordeaux.fr> Cc: John Von Essen <john@essenz.com>, questions@FreeBSD.ORG Subject: Re: awk to remove backet Message-ID: <Pine.BSF.4.21.0211111701580.43764-100000@wonkity.com> In-Reply-To: <20021111233517.A28946@milouz.boece.foo>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0211111701580.43764-100000>