1 | initial version |
This may be entirely newbish, but I was under the impression any terminal command can be run inside the sage console.
For example:
sage: cd ~/Documents
/home/steven/Documents
sage: pwd
'/home/steven/Documents'
sage: mkdir test
sage: ls
1977_001.pdf do_my_stuff.m matlab@ test/
batch_script Dropbox/ MATLAB/ test.pdf
caq_letter_2.odt FIELDS_stuff/ passport_photo.jpg test.svg
CAQ_letter.odt french_passport.jpg passport_plus_income_tax.pdf
costco_runs.xls income_tax_1.pdf research_funding/
sage: rm -r test
rm: remove directory `test'? y
sage: ls
1977_001.pdf do_my_stuff.m matlab@ test.pdf
batch_script Dropbox/ MATLAB/ test.svg
caq_letter_2.odt FIELDS_stuff/ passport_photo.jpg
CAQ_letter.odt french_passport.jpg passport_plus_income_tax.pdf
costco_runs.xls income_tax_1.pdf research_funding/
I don't really know how echo works, so I can't really help you there.
2 | No.2 Revision |
This may be entirely newbish, but I was under the impression any terminal command can be run inside the sage console.
For example:
sage: cd ~/Documents
/home/steven/Documents
sage: pwd
'/home/steven/Documents'
sage: mkdir test
sage: ls
1977_001.pdf do_my_stuff.m matlab@ test/
batch_script Dropbox/ MATLAB/ test.pdf
caq_letter_2.odt FIELDS_stuff/ passport_photo.jpg test.svg
CAQ_letter.odt french_passport.jpg passport_plus_income_tax.pdf
costco_runs.xls income_tax_1.pdf research_funding/
sage: rm -r test
rm: remove directory `test'? y
sage: ls
1977_001.pdf do_my_stuff.m matlab@ test.pdf
batch_script Dropbox/ MATLAB/ test.svg
caq_letter_2.odt FIELDS_stuff/ passport_photo.jpg
CAQ_letter.odt french_passport.jpg passport_plus_income_tax.pdf
costco_runs.xls income_tax_1.pdf research_funding/
I don't really know how echo works, so I can't really help you there.
Does this help/address your question?