Skip to main content
Became Hot Network Question
edited title
Link
Stéphane Chazelas
  • 584.7k
  • 96
  • 1.1k
  • 1.7k

solution to insetinsert a special character using sed

Source Link
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