home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!gatech!news.ans.net!cmcl2!adm!news
- From: karron@karron.med.nyu.edu (Dan Karron (karron@nyu.edu)
- Newsgroups: comp.sys.sgi
- Subject: Move/Pop file backups
- Message-ID: <32296@adm.brl.mil>
- Date: 1 Sep 92 08:47:16 GMT
- Sender: news@adm.brl.mil
- Lines: 33
-
-
- On karron.med.nyu.edu is some simple code to push a 'stack'
- of backups,and pop the backups to some version number.
-
- This is done in c, and Bourne shell.
-
- This way you can pop back to some verion of your file,
- and maintain the smallest version number as being
- closest to your current working version.
-
- The idea here is while you are working on some
- c or shell script, you never really clobber
- a file, just make lots of .BAK.nnn extensions, and
- if you make a mestake, the lower versions are
- closer to your last push, the higher versions
- are older.
-
- A little test shell script is included that
- should make it clear. Contributions, ideas
- welcome.
-
- Practice safe file!
-
-
- Cheers!
-
- Dan.
- | karron@nyu.edu (e-mail alias ) Dan Karron, Research Associate |
- | Phone: 212 263 5210 Fax: 212 263 7190 New York University Medical Center |
- | 560 First Avenue Digital Pager <1> (212) 397 9330 |
- | New York, New York 10016 <2> 10896 <3> <your-number-here> |
- ``Too busy doing to write about it, too busy writing to do anything about it.''
-
-