>Does anyone know if we can use command substitution in sed?
>For example, I want to replace a line of text in a file
>where date is the output of the date command.
This is a shell quoting problem
here are several solutions that will work:
BTW, the following does not work as you probably found out:
That's because of what doesn't happen inside single quotes.
read the man page for your shell and concentrate on the quoting
Eat Healthy | _ _ | Nothing would be done at all,
Die Anyway | v | That no one could find fault with it.