quot;r")
> > for line in text:
> > if re.match("DECRYPT_I", line):
> > print line,
> >
> > --
> > This should search every file for the simple regex "DECRYPT_I"
> > This is from the root down.
>
Thank you! But
The print error is gone, but now the script quickly finishes and doesnt walk
the OS tree or search.
Gregg
On Tuesday, March 24, 2015 at 2:14:32 PM UTC-4, Gregg Dotoli wrote:
> I am creating a tool to search a filesystem for one simple string.
> I cannot get the syntax c
-
> This should search every file for the simple regex "DECRYPT_I"
> This is from the root down.
>
> The error is:
>
> SyntaxError: Missing parentheses in call to 'print'
>
> Please help.
> Gregg Dotoli
--
https://mail.python.org/mailman/listinfo/python-list
Here you go. Windows shell was easier!!!
for /f %a in (c:\gonow) do echo %a | c:\Python34\python c:\python34\unopy.py %a
Now I can use any regex pattern, I need.
On Tuesday, March 24, 2015 at 3:54:25 PM UTC-4, Rob Gaddi wrote:
> On Tue, 24 Mar 2015 12:43:38 -0700, Gregg Dotoli wr
No worries Steven,
Thanks to ALL on this thread.
Gregg
On Tuesday, March 24, 2015 at 9:43:58 PM UTC-4, Steven D'Aprano wrote:
> On Wed, 25 Mar 2015 05:13 am, gdot...@gmail.com wrote:
>
> > The error is:
> >
> > SyntaxError: Missing parentheses in call to 'print'
>
>
> I cannot imagine how
result=regexp.search(name)
print(os.path.join(dirpath,name))
print (result)
Gregg Dotoli
--
https://mail.python.org/mailman/listinfo/python-list
Grep is regular expressions. If I'm using Python, I'll use the Python modules.
Silly
Gregg
On Wednesday, March 25, 2015 at 4:36:01 PM UTC-4, Denis McMahon wrote:
> On Tue, 24 Mar 2015 11:13:41 -0700, gdotoli wrote:
>
> > I am creating a tool to search a filesystem for one simple string.
>
> man
On Wednesday, March 25, 2015 at 3:43:38 PM UTC-4, Gregg Dotoli wrote:
> This basic script will help to find
> evidence of CryptoWall on a slave drive. Although it is
> just a string, more complex regex patterns can be
> replaced with the string. It is incredible how fast Python is an