Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 May 2000 17:45:15 -0500 (CDT)
From:      Conrad Sabatier <conrads@home.com>
To:        Dan Larsson <dl@tyfon.net>
Cc:        questions@FreeBSD.ORG
Subject:   RE: matching all non [:lower:]
Message-ID:  <XFMail.000510174515.conrads@home.com>
In-Reply-To: <NEBBJANJCNNAKCPFKHHFKEOFCBAA.dl@tyfon.net>

next in thread | previous in thread | raw e-mail | index | archive | help

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.000510174515.conrads>