I want to write a script inside a file using bash, this script is generated automatically, lets say i have a file named some.sh with the following content :
{
soemthings;
soemthings_other;
}
i want to add script to some.sh to become like this
{
soemthings;
# the script
{
hello there
im the new script
and multilines
}
soemthings_other;
}
is it possible to do this using sed ?