Hello, Im not too great with sed, and need to append the following content to the end of each line within a text file.
Code:
{type master; file /etc/namedb/blockeddomain.hosts;};
Ok, so thats just the text I want to add, heres how Im trying to do it.
Code:
sed -i 's/$/{type master; file "/etc/namedb/blockeddomain.hosts";};/' filename.txt
The problem is when I try to do it, I keep getting an error.
Code:
sed: -e expression #1, char 26: unknown option to `s'
Can anybody help me get this simple task done?
Thank you in advance