How can I reference an environment variable in sed? e.g. I thought this might work but it doesn't:
DATE=`date +%y%m%d`
echo "Today is " | sed 's/is /is ${DATE}/'
I've tried Google, man sed, O'Reilly, & searching TekTips but haven't been able to find anything.
Thanks, Chris
DATE=`date +%y%m%d`
echo "Today is " | sed 's/is /is ${DATE}/'
I've tried Google, man sed, O'Reilly, & searching TekTips but haven't been able to find anything.
Thanks, Chris