From owner-freebsd-questions Wed May 10 15:45:23 2000 Delivered-To: freebsd-questions@freebsd.org Received: from cx344940-a.meta1.la.home.com (cx344940-a.meta1.la.home.com [24.6.21.74]) by hub.freebsd.org (Postfix) with ESMTP id 4A89037B969 for ; Wed, 10 May 2000 15:45:19 -0700 (PDT) (envelope-from conrads@cx344940-a.meta1.la.home.com) Received: (from conrads@localhost) by cx344940-a.meta1.la.home.com (8.9.3/8.9.3) id RAA73280; Wed, 10 May 2000 17:45:15 -0500 (CDT) (envelope-from conrads) Message-ID: X-Mailer: XFMail 1.4.0 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: Date: Wed, 10 May 2000 17:45:15 -0500 (CDT) Organization: @Home Network From: Conrad Sabatier To: Dan Larsson Subject: RE: matching all non [:lower:] Cc: questions@FreeBSD.ORG Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On 10-May-00 Dan Larsson wrote: > How do I match all non lower characters > from a string? Evidently the caret (^) sign > doesn't work: > echo "#¤%&a/()b=?" | sed -e '/[^[:lower:]]*/s///' > > (returns: a/()b=?) > (what I want it to return is: ab) > > Any ideas? echo "#%&a/()b=?" | sed -e 's/[^[:lower:]]*//g' -- Conrad Sabatier http://members.home.net/conrads/ ICQ# 1147270 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message