Hello,
I have one requirement for grouping the content of text files (basically lines consist of some columns delimited by :). I tried with vbscript but it didn't work. Can anyone please help me on that.
Below is the requirement:
I have one master.txt files which consist of below content:
2019:T01:Actual:A1101:P1101:D68:289
2018:T02:Actual:A1101:P1101:D68:289
2019:T01:Actual:A2101:P1101:D58:289
2019:T02:Actual:A1101:P1101:D68:289
2019:T02:Actual:A1301:P1101:D68:289
2018:T02:Actual:A2101:P1101:D68:289
I want output like below:
2018_T02.txt file should have below:
2018:T02:Actual:A2101:P1101:D68:289
2018:T02:Actual:A1101:P1101:D68:289
2019_T01.txt file should have below:
2019:T01:Actual:A1101:P1101:D68:289
2019:T01:Actual:A2101:P1101:D58:289
2019_T02.txt file should have below:
2019:T02:Actual:A1101:P1101:D68:289
2019:T02:Actual:A1301:P1101:D68:289