Below is a sed command used to replace the string $RUNTIME_DIR defined in redis.conf with an environment variable RUNTIME_DIR. But I always get an error
sed "s/\$RUNTIME_DIR/${RUNTIME_DIR}/" redis.conf
sed: 1: "s/$RUNTIME_DIR//use ...": bad flag in substitute command: 'u'
what is the correct way to use sed command with a variable as the replacement?
The content of the variable is /users/joey/dev/bigcrunch//runtime
redis.confon how it is defined?/usr....