archthis: a simple versioning/archive script

version information:

archthis v 0.1 by duus

help information:


archthis v 0.1 by duus
Copies an arbitrary list of files into a subdirectory ./archive,
after appending the date and a unique numerical suffix to each.
Also creates new folder ./archive if none exists.
(Date is YY_MM_DD so alphabetical sorting is chronological.)

__Example__
$ ls
file.txt file2.txt
$ archthis *.txt

creating directory ./archive
cp ./file.txt ./archive/file.txt.06_5_17.1
cp ./file2.txt ./archive/file2.txt.06_5_17.1

archplus archived 2 file(s), had 0 error(s).
$ ls archive/
file.txt.06_5_17.1 file2.txt.06_5_17.1

(download script)

to install:

  1. copy script into a folder on your path.
  2. type chmod +x archthis.sh to make it executable


a duusscript... This page updated: Sat Aug 18 14:46:07 EDT 2007, when duus was feeling rejuvenated.