sed -e 's/From_Date\(.*\)/From_Date '$new_fromdat'/' -e 's/To_Date\(.*\)/To_Date '$new_todat'/' filename