I am trying to replace a variable value in my file using bash.
Input string ----- preprocess_date=06/24/2020_17:00
Expected string ----- preprocess_date=06/24/2020_17:10
I have the value 06/24/2020_17:10
in prep_tmp
variable. I have tried the below command:
sed -i s/preprocess_date=.*/preprocess_date=${prep_tmp}/
I'm getting the error sed: -e expression #1, char 43: unknown option to `s'
Can anyone help me on this?
Thanks in advance.