One of the variables, I have:
DATE="04/15/2003"
Then I do a sed:
cat ${filename} | sed -e s/"Start Date:"/"${DATE}"/ > ${RUNDIR}/status.new
Because DATE contains '/', it screwed up the file. 'status.new' becomes 0 length file. How do I fix the problem or how do I change the variable $DATE to "04\/15\/2003"?
DATE="04/15/2003"
Then I do a sed:
cat ${filename} | sed -e s/"Start Date:"/"${DATE}"/ > ${RUNDIR}/status.new
Because DATE contains '/', it screwed up the file. 'status.new' becomes 0 length file. How do I fix the problem or how do I change the variable $DATE to "04\/15\/2003"?