[OS X TeX] [OT] TextWrangler multiple file replace

Alan Munn amunn at gmx.com
Fri Jul 23 15:10:34 EDT 2010


Sorry this is only vaguely on topic.  I have a bunch of text files  
that I would like to do a global replace of the &,$, %  that need to  
be escaped in LaTeX.  If open one of the files, and do the following  
search using grep:

[&$%]
replace with
\\\&

It correctly finds instances of these characters and does the correct  
replacement.

However, if I try the same search using the multi-file search, (also  
using grep) it returns with "The pattern [&$%] was not found.", yet I  
know there are instances in the files (since I can do the same search  
on any single file.)

Can someone confirm this behaviour and/or tell me what I'm doing wrong?

Thanks

Alan

-- 
Alan Munn
amunn at gmx.com







More information about the MacOSX-TeX mailing list