[ale] Perl Problem

Drew Brown nupedrew at gmail.com
Fri May 28 15:11:13 EDT 2010


The solution worked.

Thank you!

Drew


On Thu, May 27, 2010 at 6:55 PM, Richard Bronosky <Richard at bronosky.com>wrote:

> 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 #!.
>
> _______________________________________________
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.ale.org/pipermail/ale/attachments/20100528/988651f2/attachment.html 


More information about the Ale mailing list