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

From: Emanuel Rumpf <xbran@email-addr-hidden>
Date: Sat Sep 27 2008 - 02:11:10 EEST

2008/9/27 Wolfgang Woehl <tito@email-addr-hidden>:
> 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]"

     ! :-)
_______________________________________________
Linux-audio-dev mailing list
Linux-audio-dev@email-addr-hidden
http://lists.linuxaudio.org/mailman/listinfo/linux-audio-dev
Received on Sat Sep 27 04:15:05 2008

This archive was generated by hypermail 2.1.8 : Sat Sep 27 2008 - 04:15:05 EEST