home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / sgi / 13130 < prev    next >
Encoding:
Internet Message Format  |  1992-08-31  |  1.3 KB

  1. Path: sparky!uunet!gatech!news.ans.net!cmcl2!adm!news
  2. From: karron@karron.med.nyu.edu (Dan Karron (karron@nyu.edu)
  3. Newsgroups: comp.sys.sgi
  4. Subject: Move/Pop file backups
  5. Message-ID: <32296@adm.brl.mil>
  6. Date: 1 Sep 92 08:47:16 GMT
  7. Sender: news@adm.brl.mil
  8. Lines: 33
  9.  
  10.  
  11. On karron.med.nyu.edu is some simple code to push a 'stack'
  12. of backups,and pop the backups to some version number.
  13.  
  14. This is done in c, and Bourne shell. 
  15.  
  16. This way you can pop back to some verion of your file,
  17. and maintain the smallest version number as being
  18. closest to your current working version.
  19.  
  20. The idea here is while you are working on some
  21. c or shell script, you never really clobber
  22. a file, just make lots of .BAK.nnn extensions, and
  23. if you make a mestake, the lower versions are
  24. closer to your last push, the higher versions
  25. are older.
  26.  
  27. A little test shell script is included that
  28. should make it clear. Contributions, ideas
  29. welcome.
  30.  
  31. Practice safe file! 
  32.  
  33.  
  34. Cheers!
  35.  
  36. Dan.
  37. | karron@nyu.edu (e-mail alias )         Dan Karron, Research Associate      |
  38. | Phone: 212 263 5210 Fax: 212 263 7190  New York University Medical Center  |
  39. | 560 First Avenue                       Digital Pager <1> (212) 397 9330    |
  40. | New York, New York 10016               <2> 10896   <3> <your-number-here>  |
  41. ``Too busy doing to write about it, too busy writing to do anything about it.''
  42.  
  43.