I am having a hardtime trying to learn how to have 2 output files based on the header and if its possible named with info from the header...
Example original file:
AAABBB12042018
Jon238444kdhsljdjd7
Math37378338kdjdkske
AAABBB14042018
Ash81272722mddnd
Jay81727272msnsms
1st file named based on header: file-12042018
Jon238444kdhsljdjd
Math37378338kdjdkske
2nd file named based on header: file-14042018
Ash81272722mddnd
Jay81727272msnsms
I dont mind keeping the header or not, my issue is how to handle multiple output names based on a string within the header