Sprache: English Programmiersprache: Unix Shell Veröffentlicht von: devphil [nicht registriert] Letzte Änderung: 15.05.2006 Aufrufe: 1086
This ksh script hardlinks itself as six other scripts: cpdate, cpnote, mvdate, mvnote, cptime, and mvtime. They are simple timesavers for making backup copies of files. The first iteration was written by a system administrator at a university, then others were added by me. Finally I pulled them all together into a single file and added some more "names" and the result is used quite a bit on my Unix systems.Here are some examples of combinations of commands. They should be self-explanatory.$ cpdateUsage: cpdate file [path]$ cpnoteUsage: cpnote file [path] note$ touch foo$ cpdate foo$ cpnote foo bar$ mkdir dir$ mvtime Usage: mvtime file [path]$ mvtime foo dir$ ls -lFtotal 16drwxr-xr-x 2 user group 197 Jan 15 19:28 dir/-rw-r--r-- 1 user group 0 Jan 15 19:27 foo.2000-01-15-rw-r--r-- 1 user group 0 Jan 15 19:27 foo.bar$ ls -lF dirtotal 0-rw-r--r-- 1 user group 0 Jan 15 19:27 foo.2000-01-15T19:28:18
Name *
E-Mail (wird nicht angezeigt) *
Website
Kommentar *
Sicherheitscode *