On Thu, Jul 16, 2009 at 11:23 PM, kcrisman<kcris...@gmail.com> wrote:
<SNIP> >> Sage worksheets are compressed using tar and bzip2. Say your worksheet >> is called myworksheet.sws, then this would uncompress it: >> >> $ tar -jxf myworksheet.sws >> >> You then get a directory containing the worksheet data. >> > > Probably this will be named by a number, e.g. > > 55 > > which would be worksheet # 56, starting at zero (not counting if you > deleted some). > > After getting rid of whatever you want, then you would have to > recompress it, of course, to recreate a .sws file. Minh, the command > is...? Maybe something like > > tar -jcf myworksheet.sws 55 > > at least I think that is the correct order to put the filename and the > directory. > > Since you are using VMWare, I assume that there is a way to get a > command line in the Linux virtual machine to do these things. It is > likely that StuffIt or whatever Windows utility does this sort of > thing can also do all this, but I am not sure about how to get it to > restuff into a nonstandard filename ending (like .sws). The VMware image of Sage includes tar and bzip2. From within the Sage command line interface, you can go to a bash shell using sage: !bash Within that shell, you have access to tar and bzip2 in order to compress and uncompress using tar and bzip2. I don't have a VMware image of Sage running at the moment, but the essential ideas should be clear in this transcript. If not, please tell me. [mv...@sage sandbox]$ sage ---------------------------------------------------------------------- | Sage Version 4.1, Release Date: 2009-07-09 | | Type notebook() for the GUI, and license() for information. | ---------------------------------------------------------------------- sage: !bash [mv...@sage sandbox]$ mkdir myworksheet [mv...@sage sandbox]$ cd myworksheet/ [mv...@sage myworksheet]$ echo "some data" > data.txt [mv...@sage myworksheet]$ cd .. [mv...@sage sandbox]$ ls myworksheet [mv...@sage sandbox]$ tar -jcf myworksheet.sws myworksheet/ [mv...@sage sandbox]$ ls myworksheet myworksheet.sws [mv...@sage sandbox]$ exit exit sage: exit Exiting SAGE (CPU time 0m0.08s, Wall time 1m1.65s). -- Regards Minh Van Nguyen --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---