I have a problem I am trying to write a script that will allowed me to write on a conf file for so i was trying to use a sed command but it looks like it works but doesn't save it in the file so my script is
sed '/# Load Java configuration/i JBOSS_User=root' ITg.conf
this should add "JBOSS_User=root" after the line "# Load Java configuration"
How can I do it?