Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'A simple shell alias for using python the way you want' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
A simple shell alias for using python the way you want
Authored by: jochen Küpper on Jul 10, '07 03:10:07AM
I've used this (tc) shell-script and its bash equivalent for a long time now, works like a charm

# line-calculator
alias calc 'python -c "from __future__ import division;' \
    'from math import *;' \
    'print \!* " '


[ Reply to This | # ]