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

Emanuel Rumpf xbran at web.de
Fri Sep 26 23:11:10 UTC 2008


2008/9/27 Wolfgang Woehl <tito at rumford.de>:
> Oh my god :)
> This one is ugly too but, while we're at it, what the hell:
> echo "monday" | cut -b -3 | sed 's/\(^.\)/\U\1/'
>

python -c "d='monday'.capitalize(); print d[0:3]"

     !   :-)



More information about the Linux-audio-dev mailing list