Unix helpers
From Blue-IT.org Wiki
sed
Add a line into a given script
sed -i '/"Text in the line before"/s@"Text in the line before"@&\n\tNEW_TEXT_IN_LINESFTER@' \ /etc/yourscript
Add a line into a given script
sed -i '/"Text in the line before"/s@"Text in the line before"@&\n\tNEW_TEXT_IN_LINESFTER@' \ /etc/yourscript