X@t you're storing a large number@tof files in an archive,@tit may
X
X@t be inconvenient to type in the names of the files each time
X
X@t you work on the archive. _@hz_@ho_@ho allows you to take the files
X
X@t list from a file using the 'I' option. This option may be
X
X@t applied to a number of commands, but typically you use it
X
X@t with the 'a' command when creating a new archive, or the
X
X@t 'aun'@tcommand@twhen updating an archive.
X
X
X@t Example of file list for a file
X@t zoo aI arch < files.lst
X
X@t Where@tthe file "files.lst" has been created with a list of
X
X@t the files you're maintaining in this archive.@tSince this is
X
X@t a simple text@tfile, you can create it@twith an@teditor,@tand
X
X@t program, or by typing@tit in.
X
X
X@t If you are on@ta system which supports@tpipes between
X
X
X
X@t rev 1.19 - 11/9/88@t For zoo 2.01@t@t Page 23
X@t@t@t Advanced features and commands
X
X
X
X
X
X
X
X
X
X
X
X commands, you can use a program to@tgenerate a list@tand send
X
X it@tinto _@hz_@ho_@ho without saving@tit in a@tfile. The commands "find"
X
X on@tUNIX and "scan"@ton MS-DOS are useful.
X
X
X File list by pipes@t- UNIX:
X
X@t find . -type f -mtime@t-4 -print | zoo@taI thisweek
X
X File list by pipes@t- MS-DOS:
X
X@t scan -R *.doc@t| zoo aI thisweek
X
X 5.1.5 _@hA_@hd_@hd_@hi_@hn_@hg__@hc_@ho_@hm_@hm_@he_@hn_@ht_@hs__@ht_@ho__@ht_@hh_@he__@ha_@hr_@hc_@hh_@hi_@hv_@he Comments may be the
X
X entire archive or on individual files, or both. The concept
X
X is@tdiscussed in detail in the "Other Concepts" section.
X
X Comments may be added to a@tfile at@tthe time the file is
X
X added to the archive. This is done by the@t'c' option. Here
X
X is@tan example of adding data to and archive with a@tcomment
X
X on@teach file, then@tadding a comment to the@tarchive@tas a
X
X whole.
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X page 24@t@t For zoo 2.01 rev 1.19@t- 11/9/88
X@t@t Advanced features and commands
X
X
X
X
X
X
X
X
X
X
X
X@t zoo ac htanal *.for
X
X@t Zoo: main.for@t -- ( 0%) added
X@t [Enter comment for main.for then@ttype /END]
X@t Read four heat treat test results files and prepare a graph on the
X@t dot matrix printer.
X@t /end
X@t Zoo: plot.for@t -- ( 0%) added
X@t [Enter comment for plot.for then@ttype /END]
X@t Convert X,Y data@tto plot@tpoints in 240dpi mode
X@t /end
X@t Zoo: screen.for@t -- ( 0%) added
X@t [Enter comment for screen.for then type /END]
X@t FORTRAN version of curses, handle screen@tdisplay@tand buffering.
X@t /end
X@t Zoo: strings.for -- ( 0%) added
X@t [Enter comment for strings.for then type@t/END]
X@t String manipulation package
X@t /end
X
X
X@t zoo cA htanal
X
X@t [Enter archive comment for htanal.zoo then type /END]
X@t Heat treat analysis program, prepare plot of results on the dot
X@t matrix printer
X@t /end
X
X@t The first command adds all of@tthe FORTRAN files to the
X
X@t archive, each@twith a comment.@tA comment is then added@tto the
X
X@t entire archive which describes the function of the package.
X
X@t If you want to modify@tthe comments already in@tthe archive,
X
X@t either file or archive, you may use the type a new comment
X
X@t or just press@tRETURN to keep the existing comment.
X
X
X@t 5.1.6@t _@hU_@hs_@hi_@hn_@hg__@hg_@he_@hn_@he_@hr_@ha_@ht_@hi_@ho_@hn_@hs Generations@tare really useful as a
X
X@t way to keep back versions of files handy in case you have to
X
X@t roll back, or@tfix a bug in an@tolder version. Here's how it
X
X@t works.
X
X
X
X
X
X@t rev 1.19 - 11/9/88@t For zoo 2.01@t@t Page 25
X@t@t@t Advanced features and commands
X
X
X
X
X
X
X
X
X
X
X
X There is a@tlimit on the number of generations of a@tfile
X
X which will@tbe kept, set on@teach individual@tfile, and by
X
X default zero. This@tdoesn't@tmean that no generations are
X
X saved, it means that there's no limit. There's also a limit
X
X on@tthe whole archive, called the archive limit, and that's
X
X set by default to one. The@tmaximum@tnumber of generations
X
X saved is the lower@tof the two limits for any given@tfile.
X
X
X There are three ways to set up an archive with generations.
X
X The simplest is to@tleave the file limits at the default
X
X (zero) and@tset the@tarchive@tlimit. What you@tdo is to create
X
X an@tarchive@tusing the 'a+' command to add files and@tturn on
X
X generations. Then you use the 'glA=' command to set the
X
X limit on generations for the whole@tarchive.
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X page 26@t@t For zoo 2.01 rev 1.19@t- 11/9/88
X@t@t Advanced features and commands
X
X
X
X
X
X
X
X
X
X
X
X@t It's easier than it sounds, here's an@texample:
X
X@t zoo a+ demo foo1
X@t Zoo: foo1 -- (67%) added
X
X@t zoo glA=3 demo
X@t Archive generation limit@tis now 3
X
X@t Now we have an archive with one generation of files,
X@t and no more than@tthree generations of files to be saved
X@t for any file. After changing the@tfile and adding@tnew
X@t versions@tto the archive,@there's what the@tarchive@tlooks
X@t like. Notice that deleted files haven't been removed,
X@t to make it easy to see what's happening.
X
X
X@t zoo Ldg demo
X
X@t Archive demo.zoo:
X@t Length@t CF Size Now Date@t Time
X@t --------@t --- -------- --------- --------
X@t@t 5074@t 67%@t 1690 18 Oct 88 10:36:52 0g@t D foo1;1
X@t@t 5103@t 67%@t 1705 18 Oct 88 10:45:10 0g@t foo1;2
X@t@t 5132@t 67%@t 1715 18 Oct 88 10:45:14 0g@t foo1;3
X@t@t 5161@t 67%@t 1725 18 Oct 88 10:45:20 0g@t foo1;4
X@t --------@t --- -------- --------- --------
X@t@t 20470@t 67%@t 6835@t 4 files
X@t ------------
X@t D: deleted file.
X@t Archive generation limit@tis 3.
X
X@t Remember that@tthere are three@tways to@tuse generations. The
X
X@t second is if I have one file which does not require many
X
X@t generations. In that case I would set@tthe archive generation
X
X@t limit@tto the value for all the rest of the files in the
X
X@t archive, and then set@tthe limit on the one file which@tneeds
X
X@t a special value.
X
X
X
X
X
X
X
X
X
X
X
X@t rev 1.19 - 11/9/88@t For zoo 2.01@t@t Page 27
X@t@t@t Advanced features and commands
X
X
X
X
X
X
X
X
X
X
X
X It@twould look like@tthis:
X@t zoo a+ demo foo1 foo2@tfoo3
X@t Zoo:@tfoo1 --@t (67%) added
X@t Zoo:@tfoo2 --@t (21%) added
X@t Zoo:@tfoo3 --@t (77%) added
X
X@t zoo glA=5 demo
X@t Archive generation limit is now 5
X
X@t zoo gl=2 demo@tfoo2
X@t Zoo: foo2;1@t -- adjusted to 2
X
X The final way to manage generations is to set the archive
X
X limit to zero, allowing any number@tof versions as default,
X
X and then setting the limit@ton each@tfile individually. This
X
X is@talmost never needed, but it does allow you to control the
X
X generation@tlimit of each file completely.
X
X
X 5.2 L@hL@hL@hLi@hi@hi@his@hs@hs@hst@ht@ht@hti@hi@hi@hin@hn@hn@hng@hg@hg@hg t@ht@ht@hth@hh@hh@hhe@he@he@he a@ha@ha@har@hr@hr@hrc@hc@hc@hch@hh@hh@hhi@hi@hi@hiv@hv@hv@hve@he@he@he
X
X
X 5.2.1 _@hG_@he_@hn_@he_@hr_@ha_@ht_@hi_@ho_@hn__@hi_@hn_@hf_@ho_@hr_@hm_@ha_@ht_@hi_@ho_@hn There are several options
X
X which will@thelp you work with generations.@tThe simplist is
X
X to@tuse the@t'L' command instead of the 'l'.@tHere is@ta simple
X
X archive, listed in@ttwo ways.
X
X
X Listed with 'l':
X
X@t Archive FIZ.zoo:
X@t Length CF@tSize Now Date@t Time
X@t -------- ---@t-------- --------- --------
X@t 6864 48%@t 3563 3 Feb 88 21:52:16@t fiz.c;1
X@t@t29 0%@t 29 31 Aug 88 16:29:04@t xxx;2
X@t -------- ---@t-------- --------- --------
X@t 6893 48%@t 3592 2 files
X
X
X
X
X
X
X
X
X
X page 28@t@t For zoo 2.01 rev 1.19@t- 11/9/88
X@t@t Advanced features and commands
X
X
X
X
X
X
X
X
X
X
X
X@t Listed with 'L':
X
X@t Archive FIZ.zoo:
X@t Length@t CF Size Now Date@t Time
X@t --------@t --- -------- --------- --------
X@t@t 6864@t 48%@t 3563@t3 Feb 88 21:52:16 fiz.c;1
X@t@t 29@t 0%@t 29 31 Aug 88 16:29:04 xxx;1
X@t@t 29@t 0%@t 29 31 Aug 88 16:29:04 xxx;2
X@t --------@t --- -------- --------- --------
X@t@t 6922@t 48%@t 3621@t 3 files
X
X@t Note that using 'l' only the most current version is
X
X@t displayed, while if you use 'L' all non-deleted versions are
X
X@t listed.
X
X
X@t If you set limits on generations of individual files,@tthen
X
X@t you will want@tto see those limits. The option@tto do this is
X
X@t 'g', display generation info.@tWithout@tthat option the
X
X@t archive and file generation limits will not be displayed,
X
X@t although the 'L' command will@tdisplay@tundeleted versions.
X
X
X@t An archive with generations, using 'L':
X
X@t Archive FIZ.zoo:
X@t Length@t CF Size Now Date@t Time
X@t --------@t --- -------- --------- --------
X@t@t 6864@t 48%@t 3563@t3 Feb 88 21:52:16 fiz.c;1
X@t@t 29@t 0%@t 29 31 Aug 88 16:29:04 xxx;1
X@t@t 29@t 0%@t 29 31 Aug 88 16:29:04 xxx;2
X@t --------@t --- -------- --------- --------
X@t@t 6922@t 48%@t 3621@t 3 files
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X@t rev 1.19 - 11/9/88@t For zoo 2.01@t@t Page 29
X@t@t@t Advanced features and commands
X
X
X
X
X
X
X
X
X
X
X
X An@tarchive@twith generations, using@t'Lg':
X
X@t Archive FIZ.zoo:
X@t Length CF@tSize Now Date@t Time
X@t -------- ---@t-------- --------- --------
X@t 6864 48%@t 3563 3 Feb 88 21:52:16@t0g fiz.c;1
X@t@t29 0%@t 29 31 Aug 88 16:29:04@t0g xxx;1
X@t@t29 0%@t 29 31 Aug 88 16:29:04@t0g xxx;2
X@t -------- ---@t-------- --------- --------
X@t 6922 48%@t 3621 3 files
X@t ------------
X@t Archive generation limit is 3.
X
X 5.2.2 _@hL_@hi_@hs_@ht_@hi_@hn_@hg__@hd_@he_@hl_@he_@ht_@he_@hd__@hf_@hi_@hl_@he_@hs If you have modified@tan
X
X archive with the expert commands, and have@tnot yet@tpacked
X
X the archive to remove deleted files, you may view those
X
X files using the 'd' option@tto the 'l' or 'L' commands.
X
X
X This is what the listing looks like with 'L':
X
X@t Archive FIZsim.zoo:
X@t Length CF@tSize Now Date@t Time
X@t -------- ---@t-------- --------- --------
X@t 6864 48%@t 3563 3 Feb 88 21:52:16@t fiz.c
X@t 3849 43%@t 2211 3 Feb 88 21:55:56@t fiz.1
X@t -------- ---@t-------- --------- --------
X@t 10713 46%@t 5774 2 files
X@t ------------
X@t There@tis 1 deleted file.
X
X And this listing used 'Ld':
X
X@t Archive FIZsim.zoo:
X@t Length CF@tSize Now Date@t Time
X@t -------- ---@t-------- --------- --------
X@t 3849 43%@t 2211 3 Feb 88 21:55:56@tD fiz.1
X@t 6864 48%@t 3563 3 Feb 88 21:52:16@t fiz.c
X@t 3849 43%@t 2211 3 Feb 88 21:55:56@t fiz.1
X@t -------- ---@t-------- --------- --------
X@t 14562 45%@t 7985 3 files
X@t ------------
X@t D: deleted file.
X
X Note that the listing without the 'd' option simply informs
X
X you of the@tnumber of selected files, while@tthe listing with
X
X
X
X page 30@t@t For zoo 2.01 rev 1.19@t- 11/9/88
X@t@t Advanced features and commands
X
X
X
X
X
X
X
X
X
X
X
X@t 'd' shows you@tthe file information just as it@tdoes the
X@t more than one@tarchive@tto be listed. In fact the general form
X
X@t allows for any number@tof archives to be specified, each
X
X@t affected by the options of the 'L' command. The restriction
X
X@t is that you can't just list some files, you get a listing of
X
X@t all undeleted@tfiles in all archives.
X
X
X@t Command "zoo L FIZ FIZsim":
X
X@t Archive FIZ.zoo:
X@t Length@t CF Size Now Date@t Time
X@t --------@t --- -------- --------- --------
X@t@t 6864@t 48%@t 3563@t3 Feb 88 21:52:16 fiz.c;1
X@t@t 29@t 0%@t 29 31 Aug 88 16:29:04 xxx;1
X@t@t 29@t 0%@t 29 31 Aug 88 16:29:04 xxx;2
X@t --------@t --- -------- --------- --------
X@t@t 6922@t 48%@t 3621@t 3 files
X
X@t Archive FIZsim.zoo:
X@t Length@t CF Size Now Date@t Time
X@t --------@t --- -------- --------- --------
X@t@t 6864@t 48%@t 3563@t3 Feb 88 21:52:16 fiz.c
X@t@t 3849@t 43%@t 2211@t3 Feb 88 21:55:56 fiz.1
X@t --------@t --- -------- --------- --------
X@t@t 10713@t 46%@t 5774@t 2 files
X@t ------------
X@t There is@t1 deleted file.
X
X@t 5.2.4@t _@hC_@hr_@he_@ha_@ht_@hi_@hn_@hg__@ha__@hs_@hi_@hm_@hp_@hl_@he__@ha_@hr_@hc_@hh_@hi_@hv_@he__@hd_@ha_@ht_@ha_@hb_@ha_@hs_@he__@hf_@hi_@hl_@he The 'a' and
X
X@t 'q' options may be used to create a database file which may
X
X@t be used as input to your favorite database program, or just
X
X@t sorted and viewed on the screen or paper.
X
X
X
X
X
X
X
X@t rev 1.19 - 11/9/88@t For zoo 2.01@t@t Page 31
X@t@t@t Advanced features and commands
X
X
X
X
X
X
X
X
X
X
X
X Creating a@tsimple files list from several archives:
X
X@t zoo Laq FIZ FIZsim
X
X@t 6864 48%@t 3563 3 Feb 88 21:52:16@t FIZ.zoo fiz.c;1
X@t@t29 0%@t 29 31 Aug 88 16:29:04@t FIZ.zoo xxx;1
X@t@t29 0%@t 29 31 Aug 88 16:29:04@t FIZ.zoo xxx;2
X@t 6864 48%@t 3563 3 Feb 88 21:52:16@t FIZsim.zoo fiz.c
X@t 3849 43%@t 2211 3 Feb 88 21:55:56@t FIZsim.zoo fiz.1
X
X the 'a' option causes the name of the archive to be listed
X
X on@teach line, instead at the start@tof the listing.@tThe 'q'
X
X option suppresses the headings and@tsummaries, leaving just
X
X one line per file.
X
X
X The eighth@tfield is the archive name, and the ninth is the
X
X file name.@t The file may be sorted@ton either of those, or
X
X the size, date modified, etc. Any or all of those fields may
X
X be@tused a indices for a real database program, if the number
X
X of@tfiles and archives is large enough to warrant that.
X
X
X 5.2.5 _@hL_@hi_@hs_@ht_@hi_@hn_@hg__@hc_@ho_@hm_@hm_@he_@hn_@ht_@hs An archive is normally listed using
X
X the 'l' command, and only the actual contents are shown. If
X
X the 'v' option is added, or if 'v'@tis used@tas a command, the
X
X comment at@tthe start of the archive which describes the
X
X package as@ta whole@tis displayed. If the 'V' option@tor
X
X command is@tused, the comments on individual files are shown
X
X as@twell. Here are examples@tof listing an archive, first with
X
X just the descriptive archive comment, and then with the
X
X comments on the individual@tfiles as well.
X
X
X
X
X
X
X page 32@t@t For zoo 2.01 rev 1.19@t- 11/9/88
X@t@t Advanced features and commands
X
X
X
X
X
X
X
X
X
X
X
X@t zoo v htanal
X
X@t Archive htanal.zoo:
X@t >> Heat treat analysis program, prepare plot of results
X@t Length@t CF Size Now Date@t Time
X@t --------@t --- -------- --------- --------
X@t@t 29@t 0%@t 29 17 Oct 88 17:23:24 C main.for
X@t@t 29@t 0%@t 29 17 Oct 88 17:23:24 C plot.for
X@t@t 29@t 0%@t 29 17 Oct 88 17:23:24 C screen.for
X@t@t 29@t 0%@t 29 17 Oct 88 17:23:24 C strings.for
X@t --------@t --- -------- --------- --------
X@t@t 116@t 0%@t 116@t 4 files
X@t ------------
X@t C: file has attached comment.
X
X
X
X
X@t zoo V htanal
X
X@t Archive htanal.zoo:
X@t >> Heat treat analysis program, prepare plot of results
X@t Length@t CF Size Now Date@t Time
X@t --------@t --- -------- --------- --------
X@t@t 29@t 0%@t 29 17 Oct 88 17:23:24 C main.for
X@t@t|Read four heat@ttreat test results files and prepare a graph on@tthe
X@t@t|dot matrix printer.
X@t@t 29@t 0%@t 29 17 Oct 88 17:23:24 C plot.for
X@t@t|Convert X,Y data to plot points in 240dpi mode
X@t@t 29@t 0%@t 29 17 Oct 88 17:23:24 C screen.for
X@t@t|FORTRAN version of curses, handle screen display and buffering.
X@t@t 29@t 0%@t 29 17 Oct 88 17:23:24 C strings.for