Skip to main content
ExLibris

Knowledge Assistant

BETA
 
  • Subscribe by RSS
  • Back
    Aleph

     

    Ex Libris Knowledge Center
    1. Search site
      Go back to previous article
      1. Sign in
        • Sign in
        • Forgot password
    1. Home
    2. Aleph
    3. Knowledge Articles
    4. DATE in job_list filename: just month/day, just day, etc.

    DATE in job_list filename: just month/day, just day, etc.

    1. Last updated
    2. Save as PDF
    3. Share
      1. Share
      2. Tweet
      3. Share
    1. Additional Information
    • 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
    View article in the Exlibris Knowledge Center
    1. Back to top
      • Date Field Error Message when Attempting Loan Request in OPAC
      • Date-to Configuration When Creating a New Patron Address
    • Was this article helpful?

    Recommended articles

    1. Article type
      Topic
      Language
      English
      Product
      Aleph
    2. Tags
      1. 20
      2. contype:kba
      3. Prod:Aleph
      4. Type:General
    1. © Copyright 2025 Ex Libris Knowledge Center
    2. Powered by CXone Expert ®
    • Term of Use
    • Privacy Policy
    • Contact Us
    2025 Ex Libris. All rights reserved