DATE in job_list filename: just month/day, just day, etc.
- Article Type: General
- Product: Aleph
- Product Version: 20
Description:
DATE in job_list filename
I can get the full date into a filename in job_list with %DATE, producing this:
filename_20091123
But what I want is just the numeric day of the month portion of the date, like this:
filename_23
Is there a way to do that?
Resolution:
Adding a suffix of `date '+%d'` will give you just the day:
filename.`date '+%d'`
Here are some tests you can do to see the different suffixes:
Day:
>cp test test.`date '+%d'`
Note: you need to restart the job_daemon (util e/15) after updating job_list.
Month/day:
>cp test test.`date '+%m%d'`
Month/day/hour/minute:
>cp test test.`date '+%m%d.%H%M'`
Additional Information
faq, joblist
- Article last edited: 10/8/2013