I'd like to replace a string within a variable, e.g.:
Test=Today, 12:34
I'd like to replace the "Today" within the variable Test
with a Date
variable I declared before.
I tried using the sed
command:
sed -i -e "s/Today/$Date" '$Test'
But it would just print out an error and the file '$Test'
is not known. Is using sed
only possible with text files?