You can define a variable TODAYS_DATEas follows:
%default TODAYS_DATE `date +%Y-%m-%d`;
and refer to it every time you need by pasting $TODAYS_DATEin a line:
'/data/mydata/$TODAYS_DATE'
Be sure not to print errors. You can also use %declare, but you will lose the flexibility to override a value from the command line or parameter file.
source
share