File examples
f17_mar_01_02_03_04_fsw1.xml
f17_mar_01_02_03_04_fsw2.xml
f17_mar_01_02_03_04_fsw3.xml
f17_feb_13_20_49_06_fsw1.xml
f17_feb_13_20_49_06_fsw2.xml
f17_feb_13_20_49_06_fsw3.xml
I have many xml files that are grouped with same file name, but are numbered from 1-to-many (fsw1..fsw2..fsw3 etc..). These example files are very short snippets of the thousands of grouped xmls� I have.
Problem: I need to process these files by filename group in a loop (basically combining them into one file per group), but I cannot seem to restart the loop every time the filename changes and it processes all the files together into one file.
Question: I need to process each group separately (fsw1..fsw2..fsw3 ) and then the next filename (fsw1..fsw2..fsw3). Is there an easy conditional way to loop on filename pattern and restart loop every time the filename changes?
Thank You