I have an error on MAC OS X when I'm using sed, which looks like so:
sed -i '' '/user_pref("mail.identity.id1.reply_on_top", 1);/ a\
user_pref("mail.identity.id1.sig_file", "/Users/nicolas.hulot/Library/Mail/V2/MailData/Signatures/signature.html");
user_pref("mail.identity.id1.sig_file-rel", "[ProfD]../../../Mail/V2/MailData/Signatures/signature.html");
' ~/Library/Thunderbird/Profiles/*.default/prefs.js
When I change the second and third line by another string like 'abcdefgh...' it's good, but with this string which has a lot of specials characters it's too wrong.
The error which appears is:
sed: 3: "/user_pref("mail.identi ...": invalid command code u