This new version of python-per-line.py adds new options: –grep, –grepoptions, –begingrep, –begingrepoptions, –endgrep and –endgrepoptions
With –grep and –grepoptions, you can select the lines to be processed by python-per-line.py.
If you want to skip lines at the beginning of the file, use option –begingrep to grep for the first line where processing should start.
And if you want to skip lines at the end of the file, use option –endgrep to grep for the last line to be processes.
Article Link: https://blog.didierstevens.com/2018/07/31/update-python-per-line-py-version-0-0-5/