Add a shebang
Use echo -n to not add a \n at the end of the line
Remove the spaces before the double punctuation marks
Check that the file exists and is writable, before trying to call sed on it