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]" ! :-)