This is a python utility to splice documents from an opticon load file.
The "source.opt" and "toFind.txt" files are just examples for you to try it out, and see how it works. Or, demo it here:
https://repl.it/@chrisreplit/untilNextY
Most likely somebody who works in litigation support/eDiscovery and regularly deals with client load files.
This program will splice a list of documents from an opticon image load file (.OPT) into a separate load file. Here's an example use:
- The client sends you a million-line OPT file, but says "Please only overlay the new images for these 50 documents."
- Without this utility, you would have to Ctrl + F to the first document, select the next unknown number of lines until you get to the next document, then paste into a new doc. Then go back to the original OPT, Ctrl + F to the second doc, copy the next unknown number of lines into the new doc, etc etc.
- Using this python program, you can automate this by simply renaming the source OPT to source.opt, making a .txt file with identifiers separated by hard returns (in the same directory), and then running UntilNextY.py. The result file will be named results.opt.