Re: [LAD] [ot] capitalising words in a shell-script

From: Chris Cannam <cannam@email-addr-hidden-day-breakfast.com>
Date: Fri Sep 26 2008 - 13:58:41 EEST

On Fri, Sep 26, 2008 at 11:56 AM, Chris Cannam
<cannam@email-addr-hidden-day-breakfast.com> wrote:
> $ echo hello | perl -pe 's/(.*)/\u$1\e/'

I was forgetting there's also a function for this, you don't have to
use the rather opaque substitution syntax:

$ echo hello | perl -e 'print ucfirst <>'

Chris
_______________________________________________
Linux-audio-dev mailing list
Linux-audio-dev@email-addr-hidden
http://lists.linuxaudio.org/mailman/listinfo/linux-audio-dev
Received on Fri Sep 26 16:15:04 2008

This archive was generated by hypermail 2.1.8 : Fri Sep 26 2008 - 16:15:04 EEST