All Questions
1
question
0
votes
1
answer
42
views
add a line to file that contains quotes and variable using bash
I want to add this line to /etc/grub.d/00_header
set superusers="ubuntu"
where ubuntu is the result of $USER.
I've tried this:
sudo bash -c 'echo "set superusers='"${USER}"'" >> /etc/grub.d/...