How to output from sage
If I am in a sage shell, and I want to send the output of my sage program(a .py file in this case) to a text file, how can I do this?
I would rather use a command in the shell, than write it into my python script.