I need to modify the name of a file to the variable of the date of the file, that date is always the day before the file was created as part of cron started job.
this is the script I am using.
echo `date '+%m%d'`| read mydate
cat pac | sed " s/$/ ${mydate} /g" > /xxxxx/pacct${mydate}
this is the script I am using.
echo `date '+%m%d'`| read mydate
cat pac | sed " s/$/ ${mydate} /g" > /xxxxx/pacct${mydate}