${builddate} from the line in the lookup file is set before this this email message is created. What I am gettting is
testmessage ${builddate} but what I want is testmessage and the value of ${builddate} . Does anyone know how I can do this. It would let me create many more messages. I’ve got about 30 scripts that use this file, so you can see the benefit to having standardized messages used in all scripts.
All of the values display correctly except for test. The reason that this is important for me is that in this particular set of scripts, I have 11 states where all of these messages are used. In another build I’m converting from Unix to Linux I have all 50 states and each state has both common processes and state specific processes.
Thanks, I will try that. The builddate is set further up in the script. Our dates are always formatted yyyymmdd. We normally get this from the file directory where the data is stored before we ftp to our local drive to work on the data. I will try the sed route, that just may work.
I am going to have to figure something out because I can’t use $(date). This is a value that is passed in based on the directory which a file exists in. For example I might have under one state, a file per day, or 1 per month, 1 per week, or adhoc. So I have to use that date in the message.