How can I replace a UUID in a /boot/grub/grub.cfg with sed?
For some reason I have to replace string 88411b09-1aaa-4775-9fc7-f60041049d6c
with f210c829-2c04-4963-9a78-d61cf8ebbd48
in a /boot/grub/grub.cfg
I found this but I'm unable to adapt it to my situation.
And I found also this but I get an error.
grep -q 88411b09-1aaa-4775-9fc7-f60041049d6c /media/alex/f210c829-2c04-4963-9a78-d61cf8ebbd48/boot/grub/grub.cfg && sudo sed -i 's/88411b09-1aaa-4775-9fc7-f60041049d6c/f210c829-2c04-4963-9a78-d61cf8ebbd48' /media/alex/f210c829-2c04-4963-9a78-d61cf8ebbd48/boot/grub/grub.cfg
sed: -e expression #1, char 75: unterminated `s' command
You need a slash at the end of the
's/old/new/'
expression.