[OS X TeX] Re: [OT] TextWrangler multiple file replace
Alan Munn
amunn at gmx.com
Mon Jul 26 00:10:56 EDT 2010
On Jul 25, 2010, at 4:31 PM, Nicola wrote:
> In article <00DF43B6-D7B9-4295-AEC7-55AA8375300E at gmx.com>,
> Alan Munn <amunn at gmx.com> 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?
>
> It works flawlessly for me. Most likely, you have checked Exclude
> Matches in Search > Multi-File Search > Options…. Less likely, you
> have
> checked the wrong option under "Search in".
Actually it was a third problem: I had a "Current Criteria" filter in
use that I was unaware of. This was looking for only .pl files within
my open files, but since none of my open files was a .pl file, it
found nothing.
Thanks to everyone who gave suggestions on this.
Alan
--
Alan Munn
amunn at gmx.com
More information about the MacOSX-TeX
mailing list