The solution worked.<br><br>Thank you!<br><br>Drew<br><br><br><div class="gmail_quote">On Thu, May 27, 2010 at 6:55 PM, Richard Bronosky <span dir="ltr"><<a href="mailto:Richard@bronosky.com">Richard@bronosky.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I don't know how you could have even gotten perl to do what you want<br>
with a "remove[d]" pattern. Here is a working gawk code sample that<br>
filters you posting in the archive:<br>
<br>
curl -s <a href="http://mail.ale.org/pipermail/ale/2010-May/119429.html" target="_blank">http://mail.ale.org/pipermail/ale/2010-May/119429.html</a> | gawk<br>
'/^[[:space:]]*\/\/[[:space:]]*remove/{r=1}; r<1{print};<br>
/^[[:space:]]*\/\/[[:space:]]*removed/{r=0};'<br>
<div><div></div><div class="h5"><br>
<br>
On Thu, May 27, 2010 at 4:36 PM, Drew Brown <<a href="mailto:nupedrew@gmail.com">nupedrew@gmail.com</a>> wrote:<br>
> I have a script that has code marked like so:<br>
><br>
> // remove<br>
> <the code and text><br>
> // removed<br>
><br>
> I want to remove <the code and text> from the file.<br>
><br>
><br>
> In the past, I believe I used the following:<br>
><br>
> perl -p -ibak -e "s/\s*\/\/remove[d]?\s*//g" ../*<br>
><br>
> It does not seem to be working anymore.<br>
><br>
> Any insight is appreciated.<br>
><br>
> Drew<br>
><br>
><br>
</div></div>> _______________________________________________<br>
> Ale mailing list<br>
> <a href="mailto:Ale@ale.org">Ale@ale.org</a><br>
> <a href="http://mail.ale.org/mailman/listinfo/ale" target="_blank">http://mail.ale.org/mailman/listinfo/ale</a><br>
> See JOBS, ANNOUNCE and SCHOOLS lists at<br>
> <a href="http://mail.ale.org/mailman/listinfo" target="_blank">http://mail.ale.org/mailman/listinfo</a><br>
><br>
><br>
<br>
<br>
<br>
--<br>
.!# RichardBronosky #!.<br>
<br>
_______________________________________________<br>
Ale mailing list<br>
<a href="mailto:Ale@ale.org">Ale@ale.org</a><br>
<a href="http://mail.ale.org/mailman/listinfo/ale" target="_blank">http://mail.ale.org/mailman/listinfo/ale</a><br>
See JOBS, ANNOUNCE and SCHOOLS lists at<br>
<a href="http://mail.ale.org/mailman/listinfo" target="_blank">http://mail.ale.org/mailman/listinfo</a><br>
</blockquote></div><br>