Re: [OT] how to change the first character into upper case

2012-02-23 Thread Al Eridani
On Thu, Feb 23, 2012 at 2:07 AM, Lorenzo Sutton wrote: > On 23/02/12 03:54, David Christensen wrote: > Of course: > > ~$ python -c "print (' '.join([str.capitalize(x) for x in 'NELSON ARISPE, > EDUARDO ROJAS, AND HARVEY B. POLLARD'.split(' ')]).replace('And','and'))" > Nelson Arispe, Eduardo Roja

Re: [OT] how to change the first character into upper case

2012-02-23 Thread Lorenzo Sutton
On 23/02/12 03:54, David Christensen wrote: On 02/22/2012 05:18 AM, Lorenzo Sutton wrote: ~$ python -c "print (' '.join([str.capitalize(x) for x in 'NELSON ARISPE, EDUARDO ROJAS, AND HARVEY B. POLLARD'.split(' ')]))" Nelson Arispe, Eduardo Rojas, And Harvey B. Pollard

Re: [OT] how to change the first character into upper case

2012-02-22 Thread David Christensen
On 02/22/2012 05:18 AM, Lorenzo Sutton wrote: ~$ python -c "print (' '.join([str.capitalize(x) for x in 'NELSON ARISPE, EDUARDO ROJAS, AND HARVEY B. POLLARD'.split(' ')]))" Nelson Arispe, Eduardo Rojas, And Harvey B. Pollard ^ I believe the 'A' in "and" should not

Re: [OT] how to change the first character into upper case

2012-02-22 Thread Lorenzo Sutton
On 22/02/12 05:23, David Christensen wrote: On 02/21/2012 07:48 AM, 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 I'd use P

Re: [OT] how to change the first character into upper case

2012-02-21 Thread David Christensen
On 02/21/2012 07:48 AM, 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 I'd use Perl and the Lingua::EN::Titlecase module: h

Re: [OT] how to change the first character into upper case

2012-02-21 Thread lina
On Wed, Feb 22, 2012 at 12:50 AM, Dom 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.

Re: [OT] how to change the first character into upper case

2012-02-21 Thread lina
On Wed, Feb 22, 2012 at 12:38 AM, Tony van der Hoff 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,

Re: [OT] how to change the first character into upper case

2012-02-21 Thread Bob Proulx
Tony van der Hoff wrote: > lina wrote: > >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. > > The "+" form for one or more characters is not supported by sed. > This works : > sed 's/\([A-Z]

Re: [OT] how to change the first character into upper case

2012-02-21 Thread Tony van der Hoff
On 21/02/12 16:38, Tony van der Hoff 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

Re: [OT] how to change the first character into upper case

2012-02-21 Thread Tony van der Hoff
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,

Re: [OT] how to change the first character into upper case

2012-02-21 Thread Dom
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,

[OT] how to change the first character into upper case

2012-02-21 Thread lina
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. POLLA