Re: Separate Words
- From: Bruce Barnett <spamhater113+U051227122111@xxxxxxxxxxxx>
- Date: 27 Dec 2005 17:21:27 GMT
Janis Papanagnou <Janis_Papanagnou@xxxxxxxxxxx> writes:
> toiday@xxxxxxxx wrote:
>> I need to convert a mixed case string into works. Exp: convert
>> "ThisIsATest" to "This Is A Test". Is there any sed oneliner that can
>> do the trick?
>> Thanks!
>>
>
> sed -e 's/\([A-Z]\)/ \1/g'
>
> ...if you don't mind the first space.
sed -e 's/\([a-z]\)\([A-Z]\)/\1 \2/g'
....should fix that.
convert <any lower case letter><any upper case letter>
into
<lower case letter> <upper case letter>
--
Sending unsolicited commercial e-mail to this account incurs a fee of
$500 per message, and acknowledges the legality of this contract.
.
- Follow-Ups:
- Re: Separate Words
- From: Bruce Barnett
- Re: Separate Words
- References:
- Separate Words
- From: toiday
- Re: Separate Words
- From: Janis Papanagnou
- Separate Words
- Prev by Date: Re: Separate Words
- Next by Date: two questions: and's inside if's and checking the return code of a program
- Previous by thread: Re: Separate Words
- Next by thread: Re: Separate Words
- Index(es):
Relevant Pages
|