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

Alain Schremmer schremmer.alain at gmail.com
Fri Jul 23 15:43:18 EDT 2010


On Jul 23, 2010, at 3:10 PM, Alan Munn wrote:

> 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?

I can do neither as the only thing I know how to do is to use sed  
with a GUI that Gerhardt once wrote.

Regards
---schremmer




More information about the MacOSX-TeX mailing list