NAME

ArchiveName - Rename a file to Archivist format.

SYNOPSIS

ArchiveName <switches> <filename>
    -d | --debug       Turn on internal debug code, if any.
    -v ! --verbose=num Set level of diagnostic output. 0 for none.
    -h | --help        Print this usage information.
         --man         Print the man page for this command.

Convert a file to the Archivist naming format by prepending the file's mdate (the date last modified) in ISO date format:

<date>-<filename>

If the filename already has a prepended date, ArchiveName will leave it alone. For example, both:

ArchiveName MyTestFile
ArchiveName 20040901-MyTestFile

will result in the target file having the name:

20040901-MyTestFile

This format is quite useful as it causes archived files to collate by the date at which you actually last worked on them.

[It should handle lists of files; it should handle wildcards and in particular, entire directories when given /my/dir/* as a filename]

Examples

None.

Errors and Warnings

Fails if file does not exist.

KNOWN BUGS

See TODO.

SEE ALSO

None.

AUTHOR

Dale Amon <amon@vnl.com>