I am trying to use sed to replace & by \& in a tex file.
I'm using sed -i "s/ & / \\\& /g" bibfile.bib;
However, the result in the file is \ & and not \& as I expect.
Any help would be welcome,
Marc
Became Hot Network Question