LinuxTips: Difference between revisions

From CUC3
Jump to navigation Jump to search
import>Jss43
mNo edit summary
import>Jss43
No edit summary
Line 3: Line 3:
alias python="python -Qnew -ic 'from math import *'"
alias python="python -Qnew -ic 'from math import *'"
</pre>
</pre>

(This causes problems if you run python scripts using #python script.py, but I don't...)


[http://www.student.northpark.edu/pemente/sed/sed1line.txt sed magic]
[http://www.student.northpark.edu/pemente/sed/sed1line.txt sed magic]

Revision as of 16:47, 26 March 2007

For a (useable) command line calculator (and much, much more):

alias python="python -Qnew -ic 'from math import *'"

(This causes problems if you run python scripts using #python script.py, but I don't...)

sed magic

bash scripting

--james 17:13, 18 December 2006 (GMT)