2008/9/27 Wolfgang Woehl <[EMAIL PROTECTED]>: > Emanuel Rumpf: > >> python -c "d='monday'.capitalize(); print d[0:3]" > > Instan methods, whoa. You win :) Can you get rid of d? >
like this: ? python -c "print 'monday'[:3].capitalize()" with use of stdin: echo "monday" | python -c "import sys; print sys.stdin.read().capitalize()[:3]" _______________________________________________ Linux-audio-dev mailing list [email protected] http://lists.linuxaudio.org/mailman/listinfo/linux-audio-dev
