[prev in list] [next in list] [prev in thread] [next in thread] 

List:       bricolage-devel
Subject:    Re: [Bricolage-Devel] getting rid of "numeric"
From:       David Wheeler <david () kineticode ! com>
Date:       2004-10-20 18:23:51
Message-ID: 314F18AD-22C5-11D9-BB7B-000A95B9602E () kineticode ! com
[Download RAW message or body]

On Oct 20, 2004, at 11:04 AM, David Wheeler wrote:

> In fact, this would take care of the vast majority of them:
>
>   % grep -lri 'active[[:space:]]*=[[:space:]]*[01]' lib \
>     | grep -v .svn | xargs \
>     perl -i.bak -pe 's/active\s*=\s*([01])/active = $1/g'

Sorry. Make that:

   % grep -lri 'active[[:space:]]*=[[:space:]]*[01]' tlib \
     | grep -v .svn | xargs \
     perl -i.bak -pe "s/active\s*=\s*([01])/active = '\$1'/ig"

Regards,

David



-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Bricolage-Devel mailing list
Bricolage-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bricolage-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic