Regex Python Help

Rob Gaddi rgaddi at technologyhighland.invalid
Tue Mar 24 15:53:24 EDT 2015


On Tue, 24 Mar 2015 12:43:38 -0700, Gregg Dotoli wrote:

> [context snipped due to top posting]
>
> All I need is a loop, should I bag Python and use a simple shell for 
loop?

Honestly, yes.  You're not even using a regular expression, just a fixed 
string you're trying to search for.  You can do the entire thing as

$ find . -type f | xargs grep DECRYPT_I

-- 
Rob Gaddi, Highland Technology -- www.highlandtechnology.com
Email address domain is currently out of order.  See above to fix.



More information about the Python-list mailing list