This is a tiny tool that just prints a "big-endian" (year first to simplify
sorting) date/time string. It is meant for use in scripts, particularily
those called as cron jobs.
"getdate" without an argument prints the date as yyyymmdd, giving the
"Time" argument makes it (tadaaa!) print date and time as yyyymmddhhMMss.
Example:
mv YAM.log YAM_`getdate`.log
Status: Public Domain
Source: included
|