The homepage of Grzegorz Kraszewski
Calendar

Download
Version 1.3
MorphOS, 7 kB.
AppendDate
A small utility appending dates to file and directory names

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.

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

Arguments:


Examples (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