On Tue, Feb 19, 2002 at 11:52:24PM -0500, Bill Akins wrote: > I have to keep all versions of the existing files and oldest must > have the highest -v## (version number) and newest is just data.txt. > Is this a job better done in bash or perl?
what about rcs? (that's "revision control system" and a professional in it's class...) Features: - "ci -l data.txt" checks in a new version to some archive stack (automatically incrementing current version number, documenting date+time, your username and a comment if you like) - At any time you can fall back to an old version by "co -l -r versionnumber data.txt" - "rcsdiff -r1.30 -r1.25" would show you the lines that had changed between those two versions. - lots more to see. -- Johannes Franken Professional unix/network development mailto:[EMAIL PROTECTED] http://www.jfranken.de/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]