[OS X TeX] Search and replace in many files

Michael Sharpe msharpe at ucsd.edu
Wed Sep 5 23:03:11 EDT 2012


On Sep 5, 2012, at 7:13 PM, Alain Schremmer wrote:

> 
> On Sep 5, 2012, at 7:53 PM, Michael Sharpe wrote:
> 
>> You might find my replaceall applescripts useful for multifile search and replace, from
>> 
>> http://dl.dropbox.com/u/3825336/TeX/index.html
> 
> I downloaded it but took only a quick glance at replaceall.pdf because I have to get up at 6:00 tomorrow. However, I saw that "this macro cannot handle any form of linefeed in the replacement tex". So, if I understand this correctly, this means that I am back to doing it by hand since, in order to keep the formatting, I need, for instance, to search for:
> 
> }% end Quiz? false
> % SSSSSSSSSSSSSSSSSSSS - End CHECKABLE ITEM
> 
> and replace it with
> 
> }% end Quiz? false
> }% end Workout? false
> % SSSSSSSSSSSSSSSSSSSS - End CHECKABLE ITEM
> 
> Best regards
> --schremmer
> 

The multifile search and replace in the free TextWrangler does appear to allow search and replace with embedded newlines. Might do what you want, but I don't have have direct experience using this feature. Unlike OgreKit, the documentation is quite complete.

Michael




More information about the MacOSX-TeX mailing list