<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">#! /usr/bin/env python

import sys
import re

def main(argv):
	
  openfile = open(argv[0], 'r')
  file_in = openfile.readlines()
  openfile.close()
  i = 1
  targetl = 1
  file_out = []
  for line in file_in:
       if i == 1:
         if line.find('rfl') != -1:
           targetl = int(re.search(r'\d+', line).group())
           i += 1
           print ";rfl Target Line:" ,targetl
         else:
		   i += 1
       else:
         if i &gt;= targetl:
           print line.rstrip('\n')
           i += 1
         else:
           i += 1
if __name__ == "__main__":
   main(sys.argv[1:])



# If you are working with many subroutines, there likely would happen some problems with run from line
# for safe workflow this filter can be used, you decide from where the file begins until END

# ini  [FILTER]
# PROGRAM_EXTENSION = .py Python Script

# py = python
# ngc = /home/path/to/folder/rfl_brave.py

# sudo chmod 755 /home/path/to/folder/rfl_brave.py and set executable.

# On first line of your .ngc file entry needed  #&lt;_rfl&gt; = 'line to start from', to use the .ngc file from this position to EOF.
# If first line is empty or #&lt;_rfl&gt; = 0 full file is run.
# Global named parameter #&lt;_rfl&gt; can be used for own purpose
# From this startpoint it is easy to start or run from line, avoiding any subroutines and get no trouble
</pre></body></html>