Re: Separate Words



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.
.



Relevant Pages

  • Re: BASS Equipment For Sale
    ... Didn't Entwistle use a 12 string in Trick of the Light? ... Prev by Date: ...
    (alt.guitar.bass)
  • Re: Difficult Integral Involving erf
    ... I saw this trick later (using a in the exp and then after diff letting ... Prev by Date: ...
    (sci.math)
  • Re: Dynamic doctests?
    ... Remove 'doctest.tesmod' and the import from your 'code' string. ... ]]] import doctest ... should do the trick. ... Prev by Date: ...
    (comp.lang.python)
  • Re: Substring with unknown length (newbie)
    ... > I'm trying to copy or search a string until a certain character match, ... > character in the source string. ... should do the trick. ... Prev by Date: ...
    (comp.lang.pascal.delphi.misc)
  • Re: Separate Words
    ... Janis Papanagnou wrote: ... >> I need to convert a mixed case string into works. ... Exp: convert ... >> do the trick? ...
    (comp.unix.shell)