in reply to How to find that a line "genman.py" exists in a python file

No need for Perl.
$ grep 'genman\.py' C:\python.py
Or, to print all non-matching lines:
$ grep -v 'genman\.py' C:\python.py

Replies are listed 'Best First'.
Re^2: How to find that a line "genman.py" exists in a python file
by ramlight (Friar) on Apr 02, 2012 at 12:42 UTC
    or, if the OP happens to be on Windows, findstr will do the same thing:
    findstr /c:"genman.py" C:\python.py findstr /v /c:"genman.py" C:\python.py