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

Chris Cannam cannam at all-day-breakfast.com
Fri Sep 26 10:56:28 UTC 2008


On Fri, Sep 26, 2008 at 11:53 AM, Paul Davis <paul at linuxaudiosystems.com> wrote:
> i believe he meant capitalize as in "foo" -> "Foo" which is an order of
> magnitude harder. i don't believe that sed can do it. perl probably can.

It can, e.g.

$ echo hello | perl -pe 's/(.*)/\u$1\e/'


Chris



More information about the Linux-audio-dev mailing list