I have one additional requirement. If we can't incorpoate it into this logic, no worries. I can forumulate another method.
In any case, aside from number of return strings per file and overall total (the latest version of the script above) I'd also like to find the total number of records.
data columns. Here is a small portion of a data file:
CP_NA,PL_NA,DS_INPUT,ACT,FIN,FY16,CO_8304,CC_8180,AC_402000,0.00,0.00,-100000.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00
CP_NA,PL_NA,DS_INPUT,ACT,FIN,FY16,CO_8304,CC_8180,AC_684100,0.00,0.00,0.00,0.00,100.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00
CP_NA,PL_NA,DS_INPUT,ACT,FIN,FY16,CO_8304,CC_8180,AC_542900,0.00,0.00,0.00,0.00,3191.08,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00
CP_NA,PL_NA,DS_INPUT,ACT,FIN,FY16,CO_8304,CC_8180,AC_683000,0.00,0.00,0.00,0.00,234.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00
CP_NA,PL_NA,DS_INPUT,ACT,FIN,FY16,CO_8304,CC_8180,AC_606010,0.00,0.00,0.00,0.00,63694.27,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00
So, what's shown in red is actually 12 records, not 1. Is there anyway to calculation this for all search files and return a total?
The data file can have 13 colums more more. But, the last 12 are always data as I said, which should help derive the logic?