I need to get a script in Unix to execute the following from a command line:
directory/analog -G
+g directory/PFEIFFER.conf
+O /directory/Report_Jul-2003.html
/directory/PFEIFFER.access.*Jul*
The problem arises from the bolded part.. I need to get it to dynamically pull in the date and put it in the script. It would be a simple matter if the date on the files were in the same format as the dates in the system but that isnt so. Since the files are named with a short name I need a way to get it to pass the correct info in.
Also, the month needs to be yesterdays date... not the month of the day it was running. That would only be a problem on the 1st of each month though
Any ideas?
directory/analog -G
+g directory/PFEIFFER.conf
+O /directory/Report_Jul-2003.html
/directory/PFEIFFER.access.*Jul*
The problem arises from the bolded part.. I need to get it to dynamically pull in the date and put it in the script. It would be a simple matter if the date on the files were in the same format as the dates in the system but that isnt so. Since the files are named with a short name I need a way to get it to pass the correct info in.
Also, the month needs to be yesterdays date... not the month of the day it was running. That would only be a problem on the 1st of each month though
Any ideas?