BBEdit will surely accomplish what you want. Trouble is, you must pay $$ for it.<br><br>If you own, or have access to, Mathematica, it should be relatively easy to write a short program that accesses each file, makes the necessary changes, and rewrites. But that program costs $$$$$.<br>
<br><div class="gmail_quote">On Wed, Sep 5, 2012 at 9:03 PM, Michael Sharpe <span dir="ltr"><<a href="mailto:msharpe@ucsd.edu" target="_blank">msharpe@ucsd.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb"><div class="h5"><br>
On Sep 5, 2012, at 7:13 PM, Alain Schremmer wrote:<br>
<br>
><br>
> On Sep 5, 2012, at 7:53 PM, Michael Sharpe wrote:<br>
><br>
>> You might find my replaceall applescripts useful for multifile search and replace, from<br>
>><br>
>> <a href="http://dl.dropbox.com/u/3825336/TeX/index.html" target="_blank">http://dl.dropbox.com/u/3825336/TeX/index.html</a><br>
><br>
> 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:<br>

><br>
> }% end Quiz? false<br>
> % SSSSSSSSSSSSSSSSSSSS - End CHECKABLE ITEM<br>
><br>
> and replace it with<br>
><br>
> }% end Quiz? false<br>
> }% end Workout? false<br>
> % SSSSSSSSSSSSSSSSSSSS - End CHECKABLE ITEM<br>
><br>
> Best regards<br>
> --schremmer<br>
><br>
<br>
</div></div>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.<br>

<span class="HOEnZb"><font color="#888888"><br>
Michael<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
----------- Please Consult the Following Before Posting -----------<br>
TeX FAQ: <a href="http://www.tex.ac.uk/faq" target="_blank">http://www.tex.ac.uk/faq</a><br>
List Reminders and Etiquette: <a href="http://email.esm.psu.edu/mac-tex/" target="_blank">http://email.esm.psu.edu/mac-tex/</a><br>
List Archive: <a href="http://tug.org/pipermail/macostex-archives/" target="_blank">http://tug.org/pipermail/macostex-archives/</a><br>
TeX on Mac OS X Website: <a href="http://mactex-wiki.tug.org/" target="_blank">http://mactex-wiki.tug.org/</a><br>
List Info: <a href="http://email.esm.psu.edu/mailman/listinfo/macosx-tex" target="_blank">http://email.esm.psu.edu/mailman/listinfo/macosx-tex</a><br>
<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>--Louis A. Talman<br>  Department of Mathematical and Computer Sciences<br>  Metropolitan State College of Denver<br><br>  <<a href="http://rowdy.mscd.edu/%7Etalmanl">http://rowdy.mscd.edu/%7Etalmanl</a>><br>