I have an audit log that is produced each day from a production printer. It names the file using todays date, but it removes the leading zero's. For example: todays date 060104 names the file 6104.txt.
I ftp this file onto a Sun box and pull stats off of it. To keep some consistency to what I am doing I would like to rename the file from 6104.txt to 060104.txt, i.e. inserting zero if the day and month are single digits. Can anyone help me do this, please?
Thanks in advance