I want to replace this line
command: [ "--no-save", "--no-restore", "--slave", "/home/app/src/work-daily.py", "20180212"]
with
command: [ "--no-save", "--no-restore", "--slave", "/home/app/src/work-daily.py", "20180305"]
20180305
is today's date where I am storing its value in a variable dated
My approach is
sed 's/.*command.*/"command: \[ "--no-save", "--no-restore", "--slave", "/home/app/src/work-daily.py", "$dated"\]"/' ghj.txt
where
dated=$(date +%Y%m%d)
its giving an error similar to this
sed: -e expression #1, char 81: unknown option to `s'