I have a (Nginx) config file like
types {
text/html html htm shtml;
text/css css;
text/xml xml;
}
In which I'd like to append an entry (wherever in the file) such as for example
types {
text/html html htm shtml;
text/css css;
text/xml xml;
image/gif gif;
}
I tried using sed as in this post
sed -i "\$i hello" mimes.types
sed: 1: "mimes.types": invalid command code m
I'm testing on MacOS with fish, but got the same error on bash.
Which command could I use here? Many thanks!