Skip to main content
1 of 2
Marc
  • 21
  • 1

solution to inset a special character using sed

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

Marc
  • 21
  • 1