i think should not use enscript with poor documentation.
use pyhton glob
#!/usr/bin/python3
import re
import glob
def searchfor():
textfiles = glob.glob(r"*.txt")
for fh in textfiles:
for line in open(fh):
if re.search('Case Number:', line):
print(line, end='')
def main():
searchfor()
if __name__ == "__main__": main()
it search for and print each Case Number word and copy it in txt or something else extention
↧