markmulligansr
MIS
I have this statement that uses sed
echo $tabname | sed 's/\_NEW/\_"${Month}"\_${Day}\_${Year}\_OLD/g' | read oldtabnamesuffix
The value of oldtabnamesuffix is tablename_${Month}_${Day}_${Year}_OLD after this statement executes.
Hoe do I get sed to use the variable values?
For example, I'd like to see oldtabnamesuffix's value be tablename_07_14_2010_OLD if today's date is 07_14_2010 and I put this into the $Month, $Day and $Year variables from the date command.
Thanks
echo $tabname | sed 's/\_NEW/\_"${Month}"\_${Day}\_${Year}\_OLD/g' | read oldtabnamesuffix
The value of oldtabnamesuffix is tablename_${Month}_${Day}_${Year}_OLD after this statement executes.
Hoe do I get sed to use the variable values?
For example, I'd like to see oldtabnamesuffix's value be tablename_07_14_2010_OLD if today's date is 07_14_2010 and I put this into the $Month, $Day and $Year variables from the date command.
Thanks