Calendar
AppendDate
A small utility appending dates to file and directory names
Grzegorz Kraszewski

AppendDate is a small CLI based program for MorphOS. It can be used for automation of naming logs or similar periodically created files, when an application generating them can't do it itself, or naming scheme is not flexible enough. The program is distributed as freeware with full source code on BSD two-clause license.

Download

AppendDate 1.3 (7 kB) for MorphOS 2.x, on MorphOS Files. The source code is included inside the archive.

Arguments

Usage: AppendDate FILE/A, DAYS/K/N, FORMAT/K, PREFIX/S, EXTENSION=EXT/S

Examples

Let's assume today is 2008-06-27.

Append today date with default format to file 'foo'. On my system (country set to Poland) it gives the result "foo_2008-06-27":

AppendDate foo

Append yesterday date in YYYY-MM-DD format, date is separated by a dot. The result is "foo.2008-06-26":

AppendDate foo DAYS -1 FORMAT ".%Y-%m-%d"

Append just a today weekday name, with fancy separator. The result is "irclog from Friday":

AppendDate irclog FORMAT " from %A"

Append date in the default format as prefix (result is "2008-06-27_foo"):

AppendDate foo PREFIX

Append YYY-MM-DD date to a picture, separated with a dot, preserving extension (result is "picture.2008-06-27.jpg").

AppendDate picture.jpg EXT FORMAT .%Y-%m-%d