I have a document containing percent signs, plus and the handset. I want to replace them with code for use in TeX.
% becomes \textpercent .+ becomes \textplus .| becomes \textbar .
This is the code I use, but it does not work:
sed -i "s/\%/\\\textpercent /g" ./file.txt sed -i "s/|/\\\textbar /g" ./file.txt sed -i "s/\+/\\\textplus /g" ./file.txt
How to replace these characters with this code?
Village
source share