I am trying to use sed in a bash file to add the following after it finds AddDefaultCharset UTF-8
<IfModule mime_magic_module>
MIMEMagicFile conf/magic
</IfModule>
To simplify things I am focusing just on adding the first line until I get it right, I have this so far.....
sed '/AddDefaultCharset UTF-8/a <IfModule mime_magic_module>' /home/testfile.ini
But when I try running this it just echos out the entire file, where am I going wrong?