Ask Your Question

Revision history [back]

To run a single command in Sage, use sage -c "command", for instance

$ sage -c "print 2 + 2"

To have Sage just run a single command in Sage, command, use sage -c "command", for instance

$ sage -c "print 2 + 2"