shell insert variable line to file after match code example
Example: shell insert variable line to file after match
sed -i "/^start-of-match.*/a \fixed-string=$str_var" filepath
sed -i "/^start-of-match.*/a \fixed-string=$str_var" filepath