On Wed, Feb 22, 2012 at 12:50 AM, Dom <to...@rpdom.net> wrote:
> On 21/02/12 15:48, lina wrote:
>>
>> Sorry a bit off-topic, but I am stuck with how to tr
>> (googled some ways out, still not work)
>>
>> NELSON ARISPE, EDUARDO ROJAS, AND HARVEY B. POLLARD
>>
>> into
>>
>> Nelson Arispe, Eduardo Rojas, and Harvey B. Pollard
>>
>> Here is what I came up with so far:
>>
>>  echo "NELSON ARISPE, EDUARDO ROJAS, AND HARVEY B. POLLARD" | sed
>> 's/\([A-Z]\)\([A-Z]+\)/\1\L\2/g'
>>
>> not work.
>>
>> Thanks with best regards,
>
>
>
> First off, I'm no expert on sed, however the following seems to work
>
>  echo "NELSON ARISPE, EDUARDO ROJAS, AND HARVEY B. POLLARD" | sed
> 's/\([A-Z]\)\([A-Z]*[^A-Z]*\)/\1\L\2/g'

Thanks, but little confusion the logic parts of \([A-Z]*[^A-Z]*\)

Best regards,

>
> --
> Dom
>
>
> --
> To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject
> of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
> Archive: http://lists.debian.org/4f43cb6a.4060...@rpdom.net
>


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/CAG9cJmkyaz=JMd+TLXD3J1UHuEeQRSU8e=8zzy001jrrhpr...@mail.gmail.com

Reply via email to