[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ale] Perl Problem



I don't know how you could have even gotten perl to do what you want
with a "remove[d]" pattern. Here is a working gawk code sample that
filters you posting in the archive:

curl -s http://mail.ale.org/pipermail/ale/2010-May/119429.html | gawk
'/^[[:space:]]*\/\/[[:space:]]*remove/{r=1}; r<1{print};
/^[[:space:]]*\/\/[[:space:]]*removed/{r=0};'


On Thu, May 27, 2010 at 4:36 PM, Drew Brown <nupedrew at gmail.com> wrote:
> I have a script that has code marked like so:
>
> ?? // remove
> ?? <the code and text>
> ?? // removed
>
> I want to remove <the code and text> from the file.
>
>
> In the past, I believe I used the following:
>
> perl -p -ibak -e "s/\s*\/\/remove[d]?\s*//g" ../*
>
> It does not seem to be working anymore.
>
> Any insight is appreciated.
>
> Drew
>
>
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://mail.ale.org/mailman/listinfo/ale
> See JOBS, ANNOUNCE and SCHOOLS lists at
> http://mail.ale.org/mailman/listinfo
>
>



-- 
.!# RichardBronosky #!.