home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / misc / volume7 / zooman.cat / part02 < prev    next >
Encoding:
Text File  |  1989-07-27  |  39.1 KB  |  1,614 lines

  1. Newsgroups: comp.sources.misc
  2. subject: v07i105: zoo 2.01 enhanced user manual, formatted (part 02/02)
  3. from: allbery@uunet.UU.NET (Brandon S. Allbery - comp.sources.misc)
  4. Reply-To: dhesi@bsu-cs.bsu.edu (Rahul Dhesi)
  5.  
  6. Posting-number: Volume 7, Issue 105
  7. Submitted-by: dhesi@bsu-cs.bsu.edu (Rahul Dhesi)
  8. Archive-name: zooman.cat/part02
  9.  
  10. This is the second part of the posting of the formatted user manual for
  11. zoo 2.01 by Bill Davidsen.  To extract, concatenate both parts and
  12. follow instructions in the first part.  Any trailing garbage in part 1
  13. or the headers in this part will be automatically ignored, so they need
  14. not be removed before concatenation.
  15.  
  16. #BOPART
  17. X
  18. X     Add the file twice@tmore and view
  19. X@t       zoo a FIZ fiz.1
  20. X@t       Zoo:  fiz.1 --  (43%) replaced+
  21. X
  22. X@t       zoo a FIZ fiz.1
  23. X@t       Zoo:  fiz.1 --  (43%) replaced+
  24. X
  25. X@t       zoo Ldg FIZ
  26. X
  27. X@t       Archive FIZ.zoo:
  28. X@t       Length@t CF  Size Now  Date@t Time
  29. X@t       --------@t --- --------  --------- --------
  30. X@t@t     29@t  0%@t   29@t2 Sep 88 17:32:42    0g@t D xxx;1
  31. X@t@t     29@t  0%@t   29@t2 Sep 88 17:47:14    0g@t   xxx;2
  32. X@t@t     29@t  0%@t   29@t2 Sep 88 17:47:22    0g@t   xxx;3
  33. X@t@t     29@t  0%@t   29@t2 Sep 88 17:47:30    0g@t   xxx;4
  34. X@t@t   3849@t 43%@t 2211@t3 Feb 88 21:55:56    1g@t D fiz.1;1
  35. X@t@t   3849@t 43%@t 2211@t3 Feb 88 21:55:56    1g@t D fiz.1;2
  36. X@t@t   3849@t 43%@t 2211@t3 Feb 88 21:55:56    1g@t   fiz.1;3
  37. X@t       --------@t --- --------  --------- --------
  38. X@t@t  11663@t 42%@t 6749@t  7 files
  39. X@t       ------------
  40. X@t       D: deleted file.
  41. X@t       Archive generation limit@tis 3.
  42. X
  43. X     After adding the file several time, note that all
  44. X
  45. X     generations other than the@tmost recent have been deleted.
  46. X
  47. X     This is just what we wanted.  Obviously if@tyou wanted to
  48. X
  49. X     keep a large number of generations@tof one file you@tcould set
  50. X
  51. X     the archive limit higher and lower@tthe limit of other files.
  52. X
  53. X     This is useful, if@tnot convenient.
  54. X
  55. X
  56. X
  57. X
  58. X
  59. X
  60. X
  61. X
  62. X
  63. X
  64. X     page 18@t@t     For zoo 2.01      rev 1.19@t- 11/9/88
  65. X@t@t    Advanced features and commands
  66. X
  67. X
  68. X
  69. X
  70. X
  71. X
  72. X
  73. X
  74. X
  75. X
  76. X
  77. X@t  4.3  D@hD@hD@hDi@hi@hi@hir@hr@hr@hre@he@he@hec@hc@hc@hct@ht@ht@hto@ho@ho@hor@hr@hr@hry@hy@hy@hy s@hs@hs@hst@ht@ht@htr@hr@hr@hru@hu@hu@huc@hc@hc@hct@ht@ht@htu@hu@hu@hur@hr@hr@hre@he@he@hes@hs@hs@hs
  78. X
  79. X
  80. X@t  Most operating systems have a@tmulti-level structure of
  81. X
  82. X@t  directories, and what@tare known as "subdirectories". _@hz_@ho_@ho
  83. X
  84. X@t  offers options about using these on the add command and the
  85. X
  86. X@t  extract command. Normally any@tdirectory information you
  87. X
  88. X@t  specify is preserved and available for use when the files
  89. X
  90. X@t  are extracted. By default directory information is saved
  91. X
  92. X@t  when a file is added,@tbut not@tused when it is@textracted.
  93. X
  94. X@t  These@tdefaults seem to represent the most common cases.
  95. X
  96. X
  97. X@t  4.4  M@hM@hM@hMa@ha@ha@hat@ht@ht@htc@hc@hc@hch@hh@hh@hhi@hi@hi@hin@hn@hn@hng@hg@hg@hg@to@ho@ho@hof@hf@hf@hf f@hf@hf@hfi@hi@hi@hil@hl@hl@hle@he@he@hen@hn@hn@hna@ha@ha@ham@hm@hm@hme@he@he@hes@hs@hs@hs
  98. X
  99. X
  100. X@t  When _@hz_@ho_@ho examines the@tfilenames on the command line, an
  101. X
  102. X@t  unintuitive name matching paradigm is@tused. If the name
  103. X
  104. X@t  contains a path delimiter, such as '/' in UNIX or '\'@tin
  105. X
  106. X@t  MS-DOS, only the name@tas entered is matched.
  107. X
  108. X
  109. X@t  For example:
  110. X@t       zoo D arch src/subz.c
  111. X
  112. X@t  Will require an exact@tmatch before the file is deleted.
  113. X
  114. X@t  However, if you just specify a filename without a path
  115. X
  116. X@t  delimiter, _@ha_@hl_@hl files of that name will be deleted, in@tany
  117. X
  118. X@t  directory.
  119. X
  120. X
  121. X
  122. X
  123. X
  124. X
  125. X
  126. X
  127. X
  128. X
  129. X
  130. X@t  rev 1.19 - 11/9/88@t  For zoo 2.01@t@t       Page 19
  131. X@t@t@t Advanced features and commands
  132. X
  133. X
  134. X
  135. X
  136. X
  137. X
  138. X
  139. X
  140. X
  141. X
  142. X
  143. X     Consider this archive:
  144. X
  145. X     Archive FIZ.zoo:
  146. X     Length    CF  Size@tNow  Date      Time
  147. X     --------  --- --------  --------- --------
  148. X@t 3849  43%     2211   3@tFeb 88 21:55:56@t    fiz.1
  149. X@t 6864  48%     3563   3@tFeb 88 21:52:16@t    fiz.c
  150. X@t 3849  43%     2211   6@tSep 88 09:33:54@t    t1/fiz.1
  151. X     --------  --- --------  --------- --------
  152. X@t14562  45%     7985@t3 files
  153. X
  154. X     There are two files, with different dates,@tnamed "fiz.1" and
  155. X
  156. X     "t1/fiz.1". If you@tuse the@tdelete command on "t1/fiz.1",
  157. X
  158. X     only that file will be deleted. If, however, you use the
  159. X
  160. X     delete command with the name "fiz.1", both@tfiles of that
  161. X
  162. X     name will be deleted. Currently there is no way to@tdelete
  163. X
  164. X     just the file with@tno path@tinformation. This limitation also
  165. X
  166. X     applies to@tother commands which require specifying@tnames in
  167. X
  168. X     the archive, such as list and extract.
  169. X
  170. X
  171. X     4.5  C@hC@hC@hCo@ho@ho@hom@hm@hm@hmm@hm@hm@hme@he@he@hen@hn@hn@hnt@ht@ht@hts@hs@hs@hs
  172. X
  173. X
  174. X     _@hz_@ho_@ho provides two type of comments,@tone on files to@texplain
  175. X
  176. X     what each file does, and one on the archive as a whole to
  177. X
  178. X     explain what's in the archive. The@tcomment@ton the entire
  179. X
  180. X     archive might be something@tlike "analize heat test@tdata,"
  181. X
  182. X     while individual files might have comments@tlike "validate
  183. X
  184. X     data routine," and@t"plot graphs on@tprinter@tin graphics
  185. X
  186. X     mode." The@tactual commands@tused to@tdo this@tare discussed
  187. X
  188. X     under adding and listing data sections.
  189. X
  190. X
  191. X
  192. X
  193. X
  194. X
  195. X
  196. X     page 20@t@t     For zoo 2.01      rev 1.19@t- 11/9/88
  197. X@t@t    Advanced features and commands
  198. X
  199. X
  200. X
  201. X
  202. X
  203. X
  204. X
  205. X
  206. X
  207. X
  208. X
  209. X@t  5.  A@hA@hA@hAd@hd@hd@hdv@hv@hv@hva@ha@ha@han@hn@hn@hnc@hc@hc@hce@he@he@hed@hd@hd@hd c@hc@hc@hco@ho@ho@hom@hm@hm@hmm@hm@hm@hma@ha@ha@han@hn@hn@hnd@hd@hd@hd u@hu@hu@hus@hs@hs@hsa@ha@ha@hag@hg@hg@hge@he@he@he
  210. X
  211. X
  212. X@t  5.1  a@ha@ha@had@hd@hd@hdd@hd@hd@hdi@hi@hi@hin@hn@hn@hng@hg@hg@hg d@hd@hd@hda@ha@ha@hat@ht@ht@hta@ha@ha@ha t@ht@ht@hto@ho@ho@ho a@ha@ha@han@hn@hn@hn a@ha@ha@har@hr@hr@hrc@hc@hc@hch@hh@hh@hhi@hi@hi@hiv@hv@hv@hve@he@he@he
  213. X
  214. X
  215. X@t  5.1.1@t _@hM_@ho_@hv_@he__@hu_@hp_@hd_@ha_@ht_@he_@hd__@hf_@hi_@hl_@he_@hs__@ht_@ho__@ha_@hn__@ha_@hr_@hc_@hh_@hi_@hv_@he  While the novice
  216. X
  217. X@t  commands support the most common operations, there are
  218. X
  219. X@t  several things which can only@tbe done@tby the expert
  220. X
  221. X@t  commands. One@tof these is to update an archive and delete
  222. X
  223. X@t  the added files. This@tis a combination of the@t-update@tand
  224. X
  225. X@t  -move@tcommands.
  226. X
  227. X
  228. X@t  The expert command to@tdo this@tis:
  229. X@t       zoo aunM@tarch file1 file2
  230. X
  231. X@t  Note that this is a combination of options, 'u' to update
  232. X
  233. X@t  files@twhich are newer@tthan what's in the archive, 'n'@tfor
  234. X
  235. X@t  new files not@tin the archive at all, and 'M' to move the
  236. X
  237. X@t  added@tfiles to the archive. Files which are current in the
  238. X
  239. X@t  archive will not be replaced,@tsaving time (and if packing is
  240. X
  241. X@t  not done, file space).
  242. X
  243. X
  244. X@t  5.1.2@t _@hP_@ha_@hc_@hk_@hi_@hn_@hg__@ha_@hs__@ha_@hn__@ho_@hp_@ht_@hi_@ho_@hn__@ht_@ho__@ha_@hd_@hd  Note that@tbecause@tthis
  245. X
  246. X@t  is an@texpert command,@tthe archive is not packed, and any
  247. X
  248. X@t  files@treplaced will still be in the archive. Adding the 'P'
  249. X
  250. X@t  option to the@tcommand@tcauses the archive to be packed, and
  251. X
  252. X@t  the unpacked archive to be saved as 'file.bak'.
  253. X
  254. X
  255. X@t  For example:
  256. X@t       zoo aunMP arch file1 file2
  257. X
  258. X@t  will pack the@tarchive@t"arch.zoo" and leave the unpacked
  259. X
  260. X
  261. X
  262. X@t  rev 1.19 - 11/9/88@t  For zoo 2.01@t@t       Page 21
  263. X@t@t@t Advanced features and commands
  264. X
  265. X
  266. X
  267. X
  268. X
  269. X
  270. X
  271. X
  272. X
  273. X
  274. X
  275. X     version as@t"arch.bak".
  276. X
  277. X
  278. X     5.1.3  _@hA_@hd_@hd_@hi_@hn_@hg__@hf_@hi_@hl_@he_@hs__@hf_@hr_@ho_@hm__@hs_@hu_@hb_@hd_@hi_@hr_@he_@hc_@ht_@ho_@hr_@hi_@he_@hs  When files are in
  279. X
  280. X     subdirectories, one thing you can do is to@thave a separate
  281. X
  282. X     archive for each subdirectory. Using _@hz_@ho_@ho you may also have
  283. X
  284. X     files from@tseveral@tsubdirectories in anarchive. The
  285. X
  286. X     following examples@tshown how this is done using MS-DOS or
  287. X
  288. X     UNIX.
  289. X
  290. X
  291. X     MS-DOS:
  292. X@t  zoo a@tsrc doc
  293. X
  294. X     UNIX:
  295. X@t  zoo a@tsrc/* doc/*
  296. X
  297. X     Note that the only@tdifference is that the '\' delimiter is
  298. X
  299. X     used in MS-DOS instead of the more@tcommon '/' used@tin UNIX.
  300. X
  301. X     When you list an archive created this way,@tthe listing looks
  302. X
  303. X     like this.
  304. X
  305. X
  306. X     Subdirectory archive listing
  307. X
  308. X@t  Archive FIZsdir.zoo:
  309. X@t  Length    CF@tSize Now  Date@t    Time
  310. X@t  --------  ---@t--------  --------- --------
  311. X@t      3849  43%@t    2211   2 Sep 88 14:29:02@t doc/fiz.1
  312. X@t      6864  48%@t    3563   2 Sep 88 14:29:02@t src/fiz.c
  313. X@t  --------  ---@t--------  --------- --------
  314. X@t     10713  46%@t    5774     2 files
  315. X
  316. X     There are a number@tof options for extracting these@tfiles,
  317. X
  318. X     allowing you to use or ignore the subdirectory information.
  319. X
  320. X     If@tyou want to create the archive file without the@tdirectory
  321. X
  322. X     names saved as part of the@tfilename, the ':' option will
  323. X
  324. X     allow you to do this. One reason to do this is if you are
  325. X
  326. X
  327. X
  328. X     page 22@t@t     For zoo 2.01      rev 1.19@t- 11/9/88
  329. X@t@t    Advanced features and commands
  330. X
  331. X
  332. X
  333. X
  334. X
  335. X
  336. X
  337. X
  338. X
  339. X
  340. X
  341. X@t  going@tto create an archive from a subdirectory and don't
  342. X
  343. X@t  want to have to change to the@tdirectory, or if you know the
  344. X
  345. X@t  files@twill be@textracted in another directory.
  346. X
  347. X
  348. X@t  Creating an archive from a subdirectory:
  349. X@t       zoo a: arch src/* src/*
  350. X
  351. X@t  Gives@tlisting:
  352. X
  353. X@t       Archive FIZsdir.zoo:
  354. X@t       Length@t CF  Size Now  Date@t Time
  355. X@t       --------@t --- --------  --------- --------
  356. X@t@t   3849@t 43%@t 2211@t2 Sep 88 14:29:02     fiz.1
  357. X@t@t   6864@t 48%@t 3563@t2 Sep 88 14:29:02     fiz.c
  358. X@t       --------@t --- --------  --------- --------
  359. X@t@t  10713@t 46%@t 5774@t  2 files
  360. X
  361. X@t  5.1.4@t _@hG_@he_@ht_@ht_@hi_@hn_@hg__@ht_@hh_@he__@hl_@hi_@hs_@ht__@ho_@hf__@hf_@hi_@hl_@he_@hs__@hf_@hr_@ho_@hm__@ha_@hn_@ho_@ht_@hh_@he_@hr__@hs_@ho_@hu_@hr_@hc_@he@tIf
  362. X
  363. X@t  you're storing a large number@tof files in an archive,@tit may
  364. X
  365. X@t  be inconvenient to type in the names of the files each time
  366. X
  367. X@t  you work on the archive. _@hz_@ho_@ho allows you to take the files
  368. X
  369. X@t  list from a file using the 'I' option. This option may be
  370. X
  371. X@t  applied to a number of commands, but typically you use it
  372. X
  373. X@t  with the 'a' command when creating a new archive, or the
  374. X
  375. X@t  'aun'@tcommand@twhen updating an archive.
  376. X
  377. X
  378. X@t  Example of file list for a file
  379. X@t       zoo aI arch < files.lst
  380. X
  381. X@t  Where@tthe file "files.lst" has been created with a list of
  382. X
  383. X@t  the files you're maintaining in this archive.@tSince this is
  384. X
  385. X@t  a simple text@tfile, you can create it@twith an@teditor,@tand
  386. X
  387. X@t  program, or by typing@tit in.
  388. X
  389. X
  390. X@t  If you are on@ta system which supports@tpipes between
  391. X
  392. X
  393. X
  394. X@t  rev 1.19 - 11/9/88@t  For zoo 2.01@t@t       Page 23
  395. X@t@t@t Advanced features and commands
  396. X
  397. X
  398. X
  399. X
  400. X
  401. X
  402. X
  403. X
  404. X
  405. X
  406. X
  407. X     commands, you can use a program to@tgenerate a list@tand send
  408. X
  409. X     it@tinto _@hz_@ho_@ho without saving@tit in a@tfile. The commands "find"
  410. X
  411. X     on@tUNIX and "scan"@ton MS-DOS are useful.
  412. X
  413. X
  414. X     File list by pipes@t- UNIX:
  415. X
  416. X@t  find . -type f -mtime@t-4 -print | zoo@taI thisweek
  417. X
  418. X     File list by pipes@t- MS-DOS:
  419. X
  420. X@t  scan -R *.doc@t| zoo aI thisweek
  421. X
  422. 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
  423. X
  424. X     entire archive or on individual files, or both. The concept
  425. X
  426. X     is@tdiscussed in detail in the "Other Concepts" section.
  427. X
  428. X     Comments may be added to a@tfile at@tthe time the file is
  429. X
  430. X     added to the archive.  This is done by the@t'c' option. Here
  431. X
  432. X     is@tan example of adding data to and archive with a@tcomment
  433. X
  434. X     on@teach file, then@tadding a comment to the@tarchive@tas a
  435. X
  436. X     whole.
  437. X
  438. X
  439. X
  440. X
  441. X
  442. X
  443. X
  444. X
  445. X
  446. X
  447. X
  448. X
  449. X
  450. X
  451. X
  452. X
  453. X
  454. X
  455. X
  456. X
  457. X
  458. X
  459. X
  460. X     page 24@t@t     For zoo 2.01      rev 1.19@t- 11/9/88
  461. X@t@t    Advanced features and commands
  462. X
  463. X
  464. X
  465. X
  466. X
  467. X
  468. X
  469. X
  470. X
  471. X
  472. X
  473. X@t       zoo ac htanal *.for
  474. X
  475. X@t       Zoo:  main.for@t --  ( 0%) added
  476. X@t       [Enter comment for main.for then@ttype /END]
  477. X@t       Read four heat treat test results files and prepare a graph on the
  478. X@t       dot matrix printer.
  479. X@t       /end
  480. X@t       Zoo:  plot.for@t --  ( 0%) added
  481. X@t       [Enter comment for plot.for then@ttype /END]
  482. X@t       Convert X,Y data@tto plot@tpoints in 240dpi mode
  483. X@t       /end
  484. X@t       Zoo:  screen.for@t --  ( 0%) added
  485. X@t       [Enter comment for screen.for then type /END]
  486. X@t       FORTRAN version of curses, handle screen@tdisplay@tand buffering.
  487. X@t       /end
  488. X@t       Zoo:  strings.for --  ( 0%) added
  489. X@t       [Enter comment for strings.for then type@t/END]
  490. X@t       String manipulation package
  491. X@t       /end
  492. X
  493. X
  494. X@t       zoo cA htanal
  495. X
  496. X@t       [Enter archive comment for htanal.zoo then type /END]
  497. X@t       Heat treat analysis program, prepare plot of results on the dot
  498. X@t       matrix printer
  499. X@t       /end
  500. X
  501. X@t  The first command adds all of@tthe FORTRAN files to the
  502. X
  503. X@t  archive, each@twith a comment.@tA comment is then added@tto the
  504. X
  505. X@t  entire archive which describes the function of the package.
  506. X
  507. X@t  If you want to modify@tthe comments already in@tthe archive,
  508. X
  509. X@t  either file or archive, you may use the type a new comment
  510. X
  511. X@t  or just press@tRETURN to keep the existing comment.
  512. X
  513. X
  514. 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
  515. X
  516. X@t  way to keep back versions of files handy in case you have to
  517. X
  518. X@t  roll back, or@tfix a bug in an@tolder version. Here's how it
  519. X
  520. X@t  works.
  521. X
  522. X
  523. X
  524. X
  525. X
  526. X@t  rev 1.19 - 11/9/88@t  For zoo 2.01@t@t       Page 25
  527. X@t@t@t Advanced features and commands
  528. X
  529. X
  530. X
  531. X
  532. X
  533. X
  534. X
  535. X
  536. X
  537. X
  538. X
  539. X     There is a@tlimit on the number of generations of a@tfile
  540. X
  541. X     which will@tbe kept, set on@teach individual@tfile, and by
  542. X
  543. X     default zero. This@tdoesn't@tmean that no generations are
  544. X
  545. X     saved, it means that there's no limit.  There's also a limit
  546. X
  547. X     on@tthe whole archive, called the archive limit, and that's
  548. X
  549. X     set by default to one. The@tmaximum@tnumber of generations
  550. X
  551. X     saved is the lower@tof the two limits for any given@tfile.
  552. X
  553. X
  554. X     There are three ways to set up an archive with generations.
  555. X
  556. X     The simplest is to@tleave the file limits at the default
  557. X
  558. X     (zero) and@tset the@tarchive@tlimit. What you@tdo is to create
  559. X
  560. X     an@tarchive@tusing the 'a+' command to add files and@tturn on
  561. X
  562. X     generations. Then you use the 'glA=' command to set the
  563. X
  564. X     limit on generations for the whole@tarchive.
  565. X
  566. X
  567. X
  568. X
  569. X
  570. X
  571. X
  572. X
  573. X
  574. X
  575. X
  576. X
  577. X
  578. X
  579. X
  580. X
  581. X
  582. X
  583. X
  584. X
  585. X
  586. X
  587. X
  588. X
  589. X
  590. X
  591. X
  592. X     page 26@t@t     For zoo 2.01      rev 1.19@t- 11/9/88
  593. X@t@t    Advanced features and commands
  594. X
  595. X
  596. X
  597. X
  598. X
  599. X
  600. X
  601. X
  602. X
  603. X
  604. X
  605. X@t  It's easier than it sounds, here's an@texample:
  606. X
  607. X@t       zoo a+ demo foo1
  608. X@t       Zoo:  foo1 --  (67%) added
  609. X
  610. X@t       zoo glA=3 demo
  611. X@t       Archive generation limit@tis now 3
  612. X
  613. X@t       Now we have an archive with one generation of files,
  614. X@t       and no more than@tthree generations of files to be saved
  615. X@t       for any file. After changing the@tfile and adding@tnew
  616. X@t       versions@tto the archive,@there's what the@tarchive@tlooks
  617. X@t       like. Notice that deleted files haven't been removed,
  618. X@t       to make it easy to see what's happening.
  619. X
  620. X
  621. X@t       zoo Ldg demo
  622. X
  623. X@t       Archive demo.zoo:
  624. X@t       Length@t CF  Size Now  Date@t Time
  625. X@t       --------@t --- --------  --------- --------
  626. X@t@t   5074@t 67%@t 1690  18 Oct 88 10:36:52    0g@t D foo1;1
  627. X@t@t   5103@t 67%@t 1705  18 Oct 88 10:45:10    0g@t   foo1;2
  628. X@t@t   5132@t 67%@t 1715  18 Oct 88 10:45:14    0g@t   foo1;3
  629. X@t@t   5161@t 67%@t 1725  18 Oct 88 10:45:20    0g@t   foo1;4
  630. X@t       --------@t --- --------  --------- --------
  631. X@t@t  20470@t 67%@t 6835@t  4 files
  632. X@t       ------------
  633. X@t       D: deleted file.
  634. X@t       Archive generation limit@tis 3.
  635. X
  636. X@t  Remember that@tthere are three@tways to@tuse generations. The
  637. X
  638. X@t  second is if I have one file which does not require many
  639. X
  640. X@t  generations. In that case I would set@tthe archive generation
  641. X
  642. X@t  limit@tto the value for all the rest of the files in the
  643. X
  644. X@t  archive, and then set@tthe limit on the one file which@tneeds
  645. X
  646. X@t  a special value.
  647. X
  648. X
  649. X
  650. X
  651. X
  652. X
  653. X
  654. X
  655. X
  656. X
  657. X
  658. X@t  rev 1.19 - 11/9/88@t  For zoo 2.01@t@t       Page 27
  659. X@t@t@t Advanced features and commands
  660. X
  661. X
  662. X
  663. X
  664. X
  665. X
  666. X
  667. X
  668. X
  669. X
  670. X
  671. X     It@twould look like@tthis:
  672. X@t  zoo a+ demo foo1 foo2@tfoo3
  673. X@t  Zoo:@tfoo1 --@t (67%) added
  674. X@t  Zoo:@tfoo2 --@t (21%) added
  675. X@t  Zoo:@tfoo3 --@t (77%) added
  676. X
  677. X@t  zoo glA=5 demo
  678. X@t  Archive generation limit is now 5
  679. X
  680. X@t  zoo gl=2 demo@tfoo2
  681. X@t  Zoo: foo2;1@t       -- adjusted to 2
  682. X
  683. X     The final way to manage generations is to set the archive
  684. X
  685. X     limit to zero, allowing any number@tof versions as default,
  686. X
  687. X     and then setting the limit@ton each@tfile individually. This
  688. X
  689. X     is@talmost never needed, but it does allow you to control the
  690. X
  691. X     generation@tlimit of each file completely.
  692. X
  693. X
  694. 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
  695. X
  696. X
  697. 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
  698. X
  699. X     which will@thelp you work with generations.@tThe simplist is
  700. X
  701. X     to@tuse the@t'L' command instead of the 'l'.@tHere is@ta simple
  702. X
  703. X     archive, listed in@ttwo ways.
  704. X
  705. X
  706. X     Listed with 'l':
  707. X
  708. X@t  Archive FIZ.zoo:
  709. X@t  Length    CF@tSize Now  Date@t    Time
  710. X@t  --------  ---@t--------  --------- --------
  711. X@t      6864  48%@t    3563   3 Feb 88 21:52:16@t fiz.c;1
  712. X@t@t29   0%@t      29  31 Aug 88 16:29:04@t xxx;2
  713. X@t  --------  ---@t--------  --------- --------
  714. X@t      6893  48%@t    3592     2 files
  715. X
  716. X
  717. X
  718. X
  719. X
  720. X
  721. X
  722. X
  723. X
  724. X     page 28@t@t     For zoo 2.01      rev 1.19@t- 11/9/88
  725. X@t@t    Advanced features and commands
  726. X
  727. X
  728. X
  729. X
  730. X
  731. X
  732. X
  733. X
  734. X
  735. X
  736. X
  737. X@t  Listed with 'L':
  738. X
  739. X@t       Archive FIZ.zoo:
  740. X@t       Length@t CF  Size Now  Date@t Time
  741. X@t       --------@t --- --------  --------- --------
  742. X@t@t   6864@t 48%@t 3563@t3 Feb 88 21:52:16     fiz.c;1
  743. X@t@t     29@t  0%@t   29  31 Aug 88 16:29:04     xxx;1
  744. X@t@t     29@t  0%@t   29  31 Aug 88 16:29:04     xxx;2
  745. X@t       --------@t --- --------  --------- --------
  746. X@t@t   6922@t 48%@t 3621@t  3 files
  747. X
  748. X@t  Note that using 'l' only the most current version is
  749. X
  750. X@t  displayed, while if you use 'L' all non-deleted versions are
  751. X
  752. X@t  listed.
  753. X
  754. X
  755. X@t  If you set limits on generations of individual files,@tthen
  756. X
  757. X@t  you will want@tto see those limits. The option@tto do this is
  758. X
  759. X@t  'g', display generation info.@tWithout@tthat option the
  760. X
  761. X@t  archive and file generation limits will not be displayed,
  762. X
  763. X@t  although the 'L' command will@tdisplay@tundeleted versions.
  764. X
  765. X
  766. X@t  An archive with generations, using 'L':
  767. X
  768. X@t       Archive FIZ.zoo:
  769. X@t       Length@t CF  Size Now  Date@t Time
  770. X@t       --------@t --- --------  --------- --------
  771. X@t@t   6864@t 48%@t 3563@t3 Feb 88 21:52:16     fiz.c;1
  772. X@t@t     29@t  0%@t   29  31 Aug 88 16:29:04     xxx;1
  773. X@t@t     29@t  0%@t   29  31 Aug 88 16:29:04     xxx;2
  774. X@t       --------@t --- --------  --------- --------
  775. X@t@t   6922@t 48%@t 3621@t  3 files
  776. X
  777. X
  778. X
  779. X
  780. X
  781. X
  782. X
  783. X
  784. X
  785. X
  786. X
  787. X
  788. X
  789. X
  790. X@t  rev 1.19 - 11/9/88@t  For zoo 2.01@t@t       Page 29
  791. X@t@t@t Advanced features and commands
  792. X
  793. X
  794. X
  795. X
  796. X
  797. X
  798. X
  799. X
  800. X
  801. X
  802. X
  803. X     An@tarchive@twith generations, using@t'Lg':
  804. X
  805. X@t  Archive FIZ.zoo:
  806. X@t  Length    CF@tSize Now  Date@t    Time
  807. X@t  --------  ---@t--------  --------- --------
  808. X@t      6864  48%@t    3563   3 Feb 88 21:52:16@t0g   fiz.c;1
  809. X@t@t29   0%@t      29  31 Aug 88 16:29:04@t0g   xxx;1
  810. X@t@t29   0%@t      29  31 Aug 88 16:29:04@t0g   xxx;2
  811. X@t  --------  ---@t--------  --------- --------
  812. X@t      6922  48%@t    3621     3 files
  813. X@t  ------------
  814. X@t  Archive generation limit is 3.
  815. X
  816. 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
  817. X
  818. X     archive with the expert commands, and have@tnot yet@tpacked
  819. X
  820. X     the archive to remove deleted files, you may view those
  821. X
  822. X     files using the 'd' option@tto the 'l' or 'L' commands.
  823. X
  824. X
  825. X     This is what the listing looks like with 'L':
  826. X
  827. X@t  Archive FIZsim.zoo:
  828. X@t  Length    CF@tSize Now  Date@t    Time
  829. X@t  --------  ---@t--------  --------- --------
  830. X@t      6864  48%@t    3563   3 Feb 88 21:52:16@t fiz.c
  831. X@t      3849  43%@t    2211   3 Feb 88 21:55:56@t fiz.1
  832. X@t  --------  ---@t--------  --------- --------
  833. X@t     10713  46%@t    5774     2 files
  834. X@t  ------------
  835. X@t  There@tis 1 deleted file.
  836. X
  837. X     And this listing used 'Ld':
  838. X
  839. X@t  Archive FIZsim.zoo:
  840. X@t  Length    CF@tSize Now  Date@t    Time
  841. X@t  --------  ---@t--------  --------- --------
  842. X@t      3849  43%@t    2211   3 Feb 88 21:55:56@tD fiz.1
  843. X@t      6864  48%@t    3563   3 Feb 88 21:52:16@t  fiz.c
  844. X@t      3849  43%@t    2211   3 Feb 88 21:55:56@t  fiz.1
  845. X@t  --------  ---@t--------  --------- --------
  846. X@t     14562  45%@t    7985     3 files
  847. X@t  ------------
  848. X@t  D: deleted file.
  849. X
  850. X     Note that the listing without the 'd' option simply informs
  851. X
  852. X     you of the@tnumber of selected files, while@tthe listing with
  853. X
  854. X
  855. X
  856. X     page 30@t@t     For zoo 2.01      rev 1.19@t- 11/9/88
  857. X@t@t    Advanced features and commands
  858. X
  859. X
  860. X
  861. X
  862. X
  863. X
  864. X
  865. X
  866. X
  867. X
  868. X
  869. X@t  'd' shows you@tthe file information just as it@tdoes the
  870. X
  871. X@t  undeleted files.
  872. X
  873. X
  874. X@t  5.2.3@t _@hL_@hi_@hs_@ht_@hi_@hn_@hg__@hm_@hu_@hl_@ht_@hi_@hp_@hl_@he__@ha_@hr_@hc_@hh_@hi_@hv_@he_@hs  The@tcommand@t'L' allows
  875. X
  876. X@t  more than one@tarchive@tto be listed. In fact the general form
  877. X
  878. X@t  allows for any number@tof archives to be specified, each
  879. X
  880. X@t  affected by the options of the 'L' command. The restriction
  881. X
  882. X@t  is that you can't just list some files, you get a listing of
  883. X
  884. X@t  all undeleted@tfiles in all archives.
  885. X
  886. X
  887. X@t  Command "zoo L FIZ FIZsim":
  888. X
  889. X@t       Archive FIZ.zoo:
  890. X@t       Length@t CF  Size Now  Date@t Time
  891. X@t       --------@t --- --------  --------- --------
  892. X@t@t   6864@t 48%@t 3563@t3 Feb 88 21:52:16     fiz.c;1
  893. X@t@t     29@t  0%@t   29  31 Aug 88 16:29:04     xxx;1
  894. X@t@t     29@t  0%@t   29  31 Aug 88 16:29:04     xxx;2
  895. X@t       --------@t --- --------  --------- --------
  896. X@t@t   6922@t 48%@t 3621@t  3 files
  897. X
  898. X@t       Archive FIZsim.zoo:
  899. X@t       Length@t CF  Size Now  Date@t Time
  900. X@t       --------@t --- --------  --------- --------
  901. X@t@t   6864@t 48%@t 3563@t3 Feb 88 21:52:16     fiz.c
  902. X@t@t   3849@t 43%@t 2211@t3 Feb 88 21:55:56     fiz.1
  903. X@t       --------@t --- --------  --------- --------
  904. X@t@t  10713@t 46%@t 5774@t  2 files
  905. X@t       ------------
  906. X@t       There is@t1 deleted file.
  907. X
  908. 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
  909. X
  910. X@t  'q' options may be used to create a database file which may
  911. X
  912. X@t  be used as input to your favorite database program, or just
  913. X
  914. X@t  sorted and viewed on the screen or paper.
  915. X
  916. X
  917. X
  918. X
  919. X
  920. X
  921. X
  922. X@t  rev 1.19 - 11/9/88@t  For zoo 2.01@t@t       Page 31
  923. X@t@t@t Advanced features and commands
  924. X
  925. X
  926. X
  927. X
  928. X
  929. X
  930. X
  931. X
  932. X
  933. X
  934. X
  935. X     Creating a@tsimple files list from several archives:
  936. X
  937. X@t  zoo Laq FIZ FIZsim
  938. X
  939. X@t      6864  48%@t    3563   3 Feb 88 21:52:16@t FIZ.zoo fiz.c;1
  940. X@t@t29   0%@t      29  31 Aug 88 16:29:04@t FIZ.zoo xxx;1
  941. X@t@t29   0%@t      29  31 Aug 88 16:29:04@t FIZ.zoo xxx;2
  942. X@t      6864  48%@t    3563   3 Feb 88 21:52:16@t FIZsim.zoo fiz.c
  943. X@t      3849  43%@t    2211   3 Feb 88 21:55:56@t FIZsim.zoo fiz.1
  944. X
  945. X     the 'a' option causes the name of the archive to be listed
  946. X
  947. X     on@teach line, instead at the start@tof the listing.@tThe 'q'
  948. X
  949. X     option suppresses the headings and@tsummaries, leaving just
  950. X
  951. X     one line per file.
  952. X
  953. X
  954. X     The eighth@tfield is the archive name, and the ninth is the
  955. X
  956. X     file name.@t The file may be sorted@ton either of those, or
  957. X
  958. X     the size, date modified, etc. Any or all of those fields may
  959. X
  960. X     be@tused a indices for a real database program, if the number
  961. X
  962. X     of@tfiles and archives is large enough to warrant that.
  963. X
  964. X
  965. 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
  966. X
  967. X     the 'l' command, and only the actual contents are shown. If
  968. X
  969. X     the 'v' option is added, or if 'v'@tis used@tas a command, the
  970. X
  971. X     comment at@tthe start of the archive which describes the
  972. X
  973. X     package as@ta whole@tis displayed. If the 'V' option@tor
  974. X
  975. X     command is@tused, the comments on individual files are shown
  976. X
  977. X     as@twell. Here are examples@tof listing an archive, first with
  978. X
  979. X     just the descriptive archive comment, and then with the
  980. X
  981. X     comments on the individual@tfiles as well.
  982. X
  983. X
  984. X
  985. X
  986. X
  987. X
  988. X     page 32@t@t     For zoo 2.01      rev 1.19@t- 11/9/88
  989. X@t@t    Advanced features and commands
  990. X
  991. X
  992. X
  993. X
  994. X
  995. X
  996. X
  997. X
  998. X
  999. X
  1000. X
  1001. X@t       zoo v htanal
  1002. X
  1003. X@t       Archive htanal.zoo:
  1004. X@t       >> Heat treat analysis program, prepare plot of results
  1005. X@t       Length@t CF  Size Now  Date@t Time
  1006. X@t       --------@t --- --------  --------- --------
  1007. X@t@t     29@t  0%@t   29  17 Oct 88 17:23:24   C main.for
  1008. X@t@t     29@t  0%@t   29  17 Oct 88 17:23:24   C plot.for
  1009. X@t@t     29@t  0%@t   29  17 Oct 88 17:23:24   C screen.for
  1010. X@t@t     29@t  0%@t   29  17 Oct 88 17:23:24   C strings.for
  1011. X@t       --------@t --- --------  --------- --------
  1012. X@t@t    116@t  0%@t  116@t  4 files
  1013. X@t       ------------
  1014. X@t       C: file has attached comment.
  1015. X
  1016. X
  1017. X
  1018. X
  1019. X@t       zoo V htanal
  1020. X
  1021. X@t       Archive htanal.zoo:
  1022. X@t       >> Heat treat analysis program, prepare plot of results
  1023. X@t       Length@t CF  Size Now  Date@t Time
  1024. X@t       --------@t --- --------  --------- --------
  1025. X@t@t     29@t  0%@t   29  17 Oct 88 17:23:24   C main.for
  1026. X@t@t|Read four heat@ttreat test results files and prepare a graph on@tthe
  1027. X@t@t|dot matrix printer.
  1028. X@t@t     29@t  0%@t   29  17 Oct 88 17:23:24   C plot.for
  1029. X@t@t|Convert X,Y data to plot points in 240dpi mode
  1030. X@t@t     29@t  0%@t   29  17 Oct 88 17:23:24   C screen.for
  1031. X@t@t|FORTRAN version of curses, handle screen display and buffering.
  1032. X@t@t     29@t  0%@t   29  17 Oct 88 17:23:24   C strings.for
  1033. X@t@t|String@tmanipulation package
  1034. X@t       --------@t --- --------  --------- --------
  1035. X@t@t    116@t  0%@t  116@t  4 files
  1036. X@t       ------------
  1037. X
  1038. X@t  5.3  E@hE@hE@hEx@hx@hx@hxt@ht@ht@htr@hr@hr@hra@ha@ha@hac@hc@hc@hct@ht@ht@hti@hi@hi@hin@hn@hn@hng@hg@hg@hg f@hf@hf@hfi@hi@hi@hil@hl@hl@hle@he@he@hes@hs@hs@hs
  1039. X
  1040. X
  1041. X@t  5.3.1@t _@hE_@hx_@ht_@hr_@ha_@hc_@ht_@hi_@hn_@hg__@ht_@ho__@ha__@hs_@hu_@hb_@hd_@hi_@hr_@he_@hc_@ht_@ho_@hr_@hy  Since the _@hz_@ho_@ho default
  1042. X
  1043. X@t  is to@tsave directory information, you@tmay want to use@tthat
  1044. X
  1045. X@t  information at some time. The@tdefault@tis to extract all
  1046. X
  1047. X@t  files@tinto the current directory. If the option '/' is added
  1048. X
  1049. X@t  to the expert@textract@tcommand, the files will@tbe extracted
  1050. X
  1051. X@t  into their original directories, _@hi_@hf _@ha_@hn_@hd _@ho_@hn_@hl_@hy _@hi_@hf _@ht_@hh_@he
  1052. X
  1053. X
  1054. X@t  rev 1.19 - 11/9/88@t  For zoo 2.01@t@t       Page 33
  1055. X@t@t@t Advanced features and commands
  1056. X
  1057. X
  1058. X
  1059. X
  1060. X
  1061. X
  1062. X
  1063. X
  1064. X
  1065. X
  1066. X
  1067. X     _@hd_@hi_@hr_@he_@hc_@ht_@ho_@hr_@hi_@he_@hs _@he_@hx_@hi_@hs_@ht.@tIf you want to create the directories,
  1068. X
  1069. X     the '//' option will do that, creating any@tneeded
  1070. X
  1071. X     directories as the@tfiles are extracted.
  1072. X
  1073. X
  1074. X     Consider the archive:
  1075. X
  1076. X@t  Archive myarch.zoo:
  1077. X@t  Length    CF@tSize Now  Date@t    Time
  1078. X@t  --------  ---@t--------  --------- --------
  1079. X@t      3849  43%@t    2211   2 Sep 88 14:29:02@t doc/fiz.1
  1080. X@t      6864  48%@t    3563   2 Sep 88 14:29:02@t src/fiz.c
  1081. X@t  --------  ---@t--------  --------- --------
  1082. X@t     10713  46%@t    5774     2 files
  1083. X
  1084. X     And the command:
  1085. X@t  zoo
  1086. X
  1087. X     The files "fiz.1" and "fiz.c" will@tbe extracteded in the
  1088. X
  1089. X     current directory.@t To extract the@tfiles in their original
  1090. X
  1091. X     directories, the option '//' may be used.
  1092. X
  1093. X
  1094. X     Creating directories and extracting:
  1095. X
  1096. X@t  zoo x// myarch
  1097. X
  1098. X     Finally the '/' option extractes files into their original
  1099. X
  1100. X     directories if the@tdirectories exist. In the case where some
  1101. X
  1102. X     directories exist and others don't@tonly the files for which
  1103. X
  1104. X     you have directories will be extracted, and you will get a
  1105. X
  1106. X     warning for each file not restored.
  1107. X
  1108. X
  1109. X     5.3.2  _@hE_@hx_@ht_@hr_@ha_@hc_@ht_@hi_@hn_@hg__@hq_@hu_@hi_@he_@ht_@hl_@hy@tThe 'q'@tcommand@tmay be used with
  1110. X
  1111. X     the 'x' command to@textract@tfiles without a@tmessage@tfor each
  1112. X
  1113. X     file. Although most people@twant a message to assure them
  1114. X
  1115. X     that the file was extracted, this may be useful if@tthe
  1116. X
  1117. X     extract affects a number of files and only@tthe error
  1118. X
  1119. X
  1120. X     page 34@t@t     For zoo 2.01      rev 1.19@t- 11/9/88
  1121. X@t@t    Advanced features and commands
  1122. X
  1123. X
  1124. X
  1125. X
  1126. X
  1127. X
  1128. X
  1129. X
  1130. X
  1131. X
  1132. X
  1133. X@t  messages (if any) are@tneeded.
  1134. X
  1135. X
  1136. X@t  5.3.3@t _@hU_@hs_@hi_@hn_@hg__@hw_@hi_@hl_@hd_@hc_@ha_@hr_@hd_@hs__@hf_@ho_@hr__@he_@hx_@ht_@hr_@ha_@hc_@ht  In general wildcards may
  1137. X
  1138. X@t  be used to extract files as well as save them.  However, on
  1139. X
  1140. X@t  some systems where wildcard names are@texpanded before@tthe
  1141. X
  1142. X@t  command is executed, it will be necessary to use the correct
  1143. X
  1144. X@t  escape sequence to prevent the name from being changed.
  1145. X
  1146. X
  1147. X@t  Extract on MS-DOS
  1148. X
  1149. X@t       zoo x arch *.doc
  1150. X
  1151. X@t  Extract on UNIX
  1152. X
  1153. X@t       zoo x arch
  1154. X
  1155. X@t  Since@tthe UNIX system@texpands@tthe wildcard names for you,
  1156. X
  1157. X@t  zoo is a special case, and you must quote the@tname. Quoting
  1158. X
  1159. X@t  is not needed@ton MS-DOS and VMS.
  1160. X
  1161. X
  1162. X@t  5.3.4@t _@hE_@hx_@ht_@hr_@ha_@hc_@ht_@hi_@hn_@hg__@hd_@he_@hl_@he_@ht_@he_@hd__@hf_@hi_@hl_@he_@hs  Although careful use@tof
  1163. X
  1164. X@t  generations will avoid the need to recover the deleted
  1165. X
  1166. X@t  versions of files, you may at@tsome time have an archive
  1167. X
  1168. X@t  which@tcontains a deleted file, and wish to recover it.
  1169. X
  1170. X@t  Consider the archive below.
  1171. X
  1172. X
  1173. X
  1174. X
  1175. X
  1176. X
  1177. X
  1178. X
  1179. X
  1180. X
  1181. X
  1182. X
  1183. X
  1184. X
  1185. X
  1186. X@t  rev 1.19 - 11/9/88@t  For zoo 2.01@t@t       Page 35
  1187. X@t@t@t Advanced features and commands
  1188. X
  1189. X
  1190. X
  1191. X
  1192. X
  1193. X
  1194. X
  1195. X
  1196. X
  1197. X
  1198. X
  1199. X     An@tarchive@twith a deleted file:
  1200. X
  1201. X@t  zoo ld FIZ
  1202. X
  1203. X@t  Archive FIZ.zoo:
  1204. X@t  Length    CF@tSize Now  Date@t    Time
  1205. X@t  --------  ---@t--------  --------- --------
  1206. X@t      3849  43%@t    2211   3 Feb 88 21:55:56@t  fiz.1
  1207. X@t      6864  48%@t    3563   3 Feb 88 16:21:36@tD fiz.c
  1208. X@t      6864  48%@t    3563   3 Feb 88 21:52:16@t  fiz.c
  1209. X@t      3849  43%@t    2211   6 Sep 88 09:33:54@t  t1/fiz.1
  1210. X@t  --------  ---@t--------  --------- --------
  1211. X@t     21426  46%@t   11548     4 files
  1212. X@t  ------------
  1213. X@t  D: deleted file.
  1214. X
  1215. X     To@tmake the situation worse, there@tis also@tan undeleted file
  1216. X
  1217. X     by@tthe same name. What you@tneed to@tdo is to recover the the
  1218. X
  1219. X     older version of the file which has been deleted. Note that
  1220. X
  1221. X     if@tyou had@tused the novice@tversion@tof the add command it
  1222. X
  1223. X     would have@tpacked the archive and the deleted file@twould be
  1224. X
  1225. X     gone. I could be found in the "FIZ.bak" copy of the archive,
  1226. X
  1227. X     however.
  1228. X
  1229. X
  1230. X     The extract command may be@tused with the 'd' option, which
  1231. X
  1232. X     allows _@hz_@ho_@ho@tto extract deleted files as well as active files,
  1233. X
  1234. X     or@tthe 'dd' option, which forces extraction of _@ho_@hn_@hl_@hy deleted
  1235. X
  1236. X     files. Since you have an active file of the same name, you
  1237. X
  1238. X     will want the 'dd'@toption.@tDon't forget to@tdelete whatever
  1239. X
  1240. X     version of@tthe file is in your current directory, or you
  1241. X
  1242. X     will need to use still more options.
  1243. X
  1244. X
  1245. X     Extracting@tthe deleted file:
  1246. X
  1247. X@t  zoo xdd FIZ fiz.c
  1248. X@t  Zoo:@tfiz.c@t       -- extracted
  1249. X
  1250. X
  1251. X
  1252. X     page 36@t@t     For zoo 2.01      rev 1.19@t- 11/9/88
  1253. X@t@t    Advanced features and commands
  1254. X
  1255. X
  1256. X
  1257. X
  1258. X
  1259. X
  1260. X
  1261. X
  1262. X
  1263. X
  1264. X
  1265. X@t  The message indicates@tthat the deleted version of the@tfile
  1266. X
  1267. X@t  has been recovered. Note that@tthe generations@tfeature@tis
  1268. X
  1269. X@t  intended to eliminate@tthe need to do this type of operation.
  1270. X
  1271. X
  1272. X@t  5.3.5@t _@hE_@hx_@ht_@hr_@ha_@hc_@ht__@ha_@hn_@hd__@ho_@hv_@he_@hr_@hw_@hr_@hi_@ht_@he
  1273. X
  1274. X@t     "You are lost in a@ttwisty maze of options,@tall alike"
  1275. X
  1276. X
  1277. X@t  There@tare three options which@tallow you to extract files
  1278. X
  1279. X@t  from an archive without deleting all of the files in your
  1280. X
  1281. X@t  current directory structure.@tThese are generally useful
  1282. X
  1283. X@t  only when the@texisting file have become damaged in some way,
  1284. X
  1285. X@t  such as trying to make changes to source or documentation
  1286. X
  1287. X@t  with a new editor, etc.
  1288. X
  1289. X
  1290. X@t  The 'O' option allows@t_@hz_@ho_@ho to overwrite existing files.
  1291. X
  1292. X@t  Without this option _@hz_@ho_@ho will ask permission to overwrite an
  1293. X
  1294. X@t  existing file@tbefore replacing it. While this@tis useful as a
  1295. X
  1296. X@t  safety measure, there@tare times when you will@twant to@t"just
  1297. X
  1298. X@t  do it." When the 'O' option is specified, existing file will
  1299. X
  1300. X@t  be replaced unless they are newer than the file in the
  1301. X
  1302. X@t  archive or read-only.@tUsing the option "OO" instead of 'O'
  1303. X
  1304. X@t  allows _@hz_@ho_@ho to@toverwrite "read-only" files. If@tyou want to
  1305. X
  1306. X@t  replace existing files you must use one of these two
  1307. X
  1308. X@t  options.
  1309. X
  1310. X
  1311. X@t  Even when using the 'O' option, an existing file will@tnot be
  1312. X
  1313. X@t  overwritten if it is newer than the version in the archive.
  1314. X
  1315. X@t  This would happen if you extracted a file, changed it, and
  1316. X
  1317. X
  1318. X@t  rev 1.19 - 11/9/88@t  For zoo 2.01@t@t       Page 37
  1319. X@t@t@t Advanced features and commands
  1320. X
  1321. X
  1322. X
  1323. X
  1324. X
  1325. X
  1326. X
  1327. X
  1328. X
  1329. X
  1330. X
  1331. X     then found@tthat the changes were incorrect. To allow _@hz_@ho_@ho to
  1332. X
  1333. X     replace a newer files, you@tneed the option@tspecified
  1334. X
  1335. X     unconditionally.
  1336. X
  1337. X
  1338. X     5.3.6  _@hE_@hx_@ht_@hr_@ha_@hc_@ht_@hi_@hn_@hg__@hg_@he_@hn_@he_@hr_@ha_@ht_@hi_@ho_@hn_@hs  If you have@tan archive with
  1339. X
  1340. X     previous generations, at some time@tyou will want to extract
  1341. X
  1342. X     a generation older@tthan the most current. To do this you
  1343. X
  1344. X     specify the generation number as part of the filename in the
  1345. X
  1346. X     'x' command.
  1347. X
  1348. X
  1349. X     Let's look@tat the listing of an archive with generations, and then@tthe
  1350. X     command to@textract@tan old generation:
  1351. X
  1352. X@t  zoo Ldg demo
  1353. X
  1354. X@t  Archive demo.zoo:
  1355. X@t  Length    CF@tSize Now  Date@t    Time
  1356. X@t  --------  ---@t--------  --------- --------
  1357. X@t      5074  67%@t    1690  18 Oct 88 10:36:52@t0g  D foo1;1
  1358. X@t      5103  67%@t    1705  18 Oct 88 10:45:10@t0g    foo1;2
  1359. X@t      5132  67%@t    1715  18 Oct 88 10:45:14@t0g    foo1;3
  1360. X@t      5161  67%@t    1725  18 Oct 88 10:45:20@t0g    foo1;4
  1361. X@t  --------  ---@t--------  --------- --------
  1362. X@t     20470  67%@t    6835     4 files
  1363. X@t  ------------
  1364. X@t  D: deleted file.
  1365. X@t  Archive generation limit is 3.
  1366. X
  1367. X
  1368. X@t  zoo x@tdemo foo1;2
  1369. X@t  Zoo: foo1;2@t      -- extracted
  1370. X
  1371. X     Notice that the characters@t';' or ':' may be used to
  1372. X
  1373. X     separate the filename from@tthe generation.@tThe ';'@tis
  1374. X
  1375. X     customary in VMS, while it's inconvenient in UNIX,@twhere the
  1376. X
  1377. X     ':' may be@tused. At this time there's no way to bypass the
  1378. X
  1379. X     generation@tcharacter and access a file with either@tcharacter
  1380. X
  1381. X     in@tits name.
  1382. X
  1383. X
  1384. X     page 38@t@t     For zoo 2.01      rev 1.19@t- 11/9/88
  1385. X@t@t    Advanced features and commands
  1386. X
  1387. X
  1388. X
  1389. X
  1390. X
  1391. X
  1392. X
  1393. X
  1394. X
  1395. X
  1396. X
  1397. X@t  6.  I@hI@hI@hIn@hn@hn@hnd@hd@hd@hde@he@he@hex@hx@hx@hx
  1398. X
  1399. X@t  + option, enable generations@t11
  1400. X@t  -add command,@tadd files  4
  1401. X@t  -delete command, delete files@t 8
  1402. X@t  -extract command, extract for@tarchive@t 7
  1403. X@t  -freshen command, update existing files  4
  1404. X@t  -freshen  5
  1405. X@t  -list@tcommand, default format@tfile listing  6
  1406. X@t  -move@tcommand, move files into archive  5
  1407. X@t  -update command, add new or changed files  5
  1408. X@t  -update  5
  1409. X@t  / option, extract to subdirectory  24
  1410. X@t  D command, delete files  8
  1411. X@t  L command, list all generations  20
  1412. X@t  L command, listing multiple archives@t22
  1413. X@t  LBR  1
  1414. X@t  M option, move files into archive  5
  1415. X@t  MS-DOS  1,14,16,17,25
  1416. X@t  O option, overwrite existing files  26
  1417. X@t  P command, pack archive  10
  1418. X@t  P option, pack after executing command  10
  1419. X@t  S option, overwrite read-only@tfiles  27
  1420. X@t  SQ  1
  1421. X@t  UNIX@t1,14,16,17,25
  1422. X@t  VMS  11
  1423. X@t  a command, add files@t4
  1424. X@t  adding file to an archive  4
  1425. X@t  adding files and packing  15
  1426. X@t  adding files from subdirectories  16
  1427. X@t  adding lists of files@t 17
  1428. X@t  adding new files only@t 5
  1429. X@t  advanced concepts  10
  1430. X@t  archive filename  2
  1431. X@t  archive  1
  1432. X@t  aun command, add new or changed files@t 5
  1433. X@t  combining update and move  15
  1434. X@t  comments, adding  17
  1435. X@t  comments, listing  23
  1436. X@t  comments  15
  1437. X@t  compress  1
  1438. X@t  content listsings, creating  22
  1439. X@t  creating archive content listings  22
  1440. X@t  d option, extracting deleted files  26
  1441. X@t  d option, list deleted files@t10
  1442. X@t  d option, listing deleted files  21
  1443. X@t  database input files,@tcreating  22
  1444. X@t  delete after archiving  5
  1445. X@t  deleted files, listing  21
  1446. X@t  deleted files, novice@tpacking@t 10
  1447. X@t  deleting files  8
  1448. X
  1449. X
  1450. X@t  rev 1.19 - 11/9/88@t  For zoo 2.01@t@t       Page 39
  1451. X@t@t@t Advanced features and commands
  1452. X
  1453. X
  1454. X
  1455. X
  1456. X
  1457. X
  1458. X
  1459. X
  1460. X
  1461. X
  1462. X
  1463. X     expert commands  2
  1464. X     extract file from archive@t7
  1465. X     extract using wildcards  25
  1466. X     extracting@tdeleted@tfiles  26
  1467. X     extracting@tfiles from subdirectories  16
  1468. X     extracting@tgenerations  27
  1469. X     extracting@tread-only files@t 27
  1470. X     extracting@tselected files@t8
  1471. X     extracting@tto a subdirectory  24
  1472. X     extracting@twith overwrite@t26
  1473. X     f option, fast listing  6
  1474. X     filename limitations  2
  1475. X     filesnames, reading from standard input  17
  1476. X     g option, list generation limits  20
  1477. X     generation@tdelimiters  27
  1478. X     generation@tlimit setting  11
  1479. X     generation@tlimit  18
  1480. X     generation@tlimits,@tlisting@t 20
  1481. X     generations, enabling  11
  1482. X     generations, extracting  27
  1483. X     generations, listing  12,20
  1484. X     generations  11,18
  1485. X     headings, list without, q option  6
  1486. X     introduction  1
  1487. X     l command,@tlist archive contents  6
  1488. X     limitations, filename  2
  1489. X     listing comments  23
  1490. X     listing deleted files  21
  1491. X     listing details  6
  1492. X     listing generations  20
  1493. X     listing multiple archives@t22
  1494. X     move, combining and update@t 15
  1495. X     multiple archives,@tlisting@t 22
  1496. X     n option, add new files only  4
  1497. X     n option, add new files  5
  1498. X     new files,@tadding@t5
  1499. X     novice commands  2
  1500. X     overwrite files on@textract@t 26
  1501. X     overwriting newer files on@textract@t 27
  1502. X     packing archives  10
  1503. X     packing while adding files@t 15
  1504. X     q command,@tquiet operation@t 25
  1505. X     q option, list without headings  6
  1506. X     quiet extract  25
  1507. X     read-only files, extracting  27
  1508. X     reading a listing@t6
  1509. X     standard input, reading filenames from  17
  1510. X     subdirectories and@twildcards  14
  1511. X     subdirectories, adding files from@t16
  1512. X     subdirectories  14,16
  1513. X     subdirectory name matching@tlimitations  14
  1514. X
  1515. X
  1516. X     page 40@t@t     For zoo 2.01      rev 1.19@t- 11/9/88
  1517. X@t@t    Advanced features and commands
  1518. X
  1519. X
  1520. X
  1521. X
  1522. X
  1523. X
  1524. X
  1525. X
  1526. X
  1527. X
  1528. X
  1529. X@t  subdirectory,@textracting files from  16
  1530. X@t  subdirectory,@textracting to  24
  1531. X@t  totals line  6
  1532. X@t  u option, update existing files  4
  1533. X@t  update and move, combining  15
  1534. X@t  updating files  4
  1535. X@t  using@tsubdirectories@t14
  1536. X@t  wildcards and@tsubdirectories@t14
  1537. X@t  wildcards, extract using  25
  1538. X@t  wildcards  3
  1539. X@t  x command, extract from archive  7
  1540. X
  1541. X
  1542. X
  1543. X
  1544. X
  1545. X
  1546. X
  1547. X
  1548. X
  1549. X
  1550. X
  1551. X
  1552. X
  1553. X
  1554. X
  1555. X
  1556. X
  1557. X
  1558. X
  1559. X
  1560. X
  1561. X
  1562. X
  1563. X
  1564. X
  1565. X
  1566. X
  1567. X
  1568. X
  1569. X
  1570. X
  1571. X
  1572. X
  1573. X
  1574. X
  1575. X
  1576. X
  1577. X
  1578. X
  1579. X
  1580. X
  1581. X
  1582. X@t  rev 1.19 - 11/9/88@t  For zoo 2.01@t@t       Page 41
  1583. X@t@t@t Advanced features and commands
  1584. X
  1585. X
  1586. X
  1587. X
  1588. #EOF
  1589. cat >/dev/null << \#FMARK
  1590. #FMARK
  1591. #EOR
  1592. echo Checking CRC codes for errors...
  1593. brik -C << \#EOCRC
  1594. #BOCRC
  1595. # Whole file CRCs generated by Brik v2.0.  Use "brik -C" to verify them.
  1596.  
  1597. # CRC-32        filename
  1598. # ------        --------
  1599.  
  1600.  434332680      uguide.prn
  1601. #EOCRC
  1602. if test $? -eq 0
  1603. then
  1604.    echo "No errors"
  1605.    exit 0
  1606. else
  1607.    echo 'Oops! Errors occurred'
  1608.    exit 1
  1609. fi
  1610.  
  1611. Rahul Dhesi <dhesi@bsu-cs.bsu.edu>
  1612. UUCP:    ...!{iuvax,pur-ee}!bsu-cs!dhesi
  1613.  
  1614.