I want to match the lines of text file upto 45th character and if any duplicates are found then liken to be copied to a new text file.
Sample Text File
Title ABC & Co.
10366700005501800000e006000000000003148600000e006059327300000000000000011205920289592524711849252471180917724
036733861460000000000095695300003440760000e006000000000003953610000e00022641877060775336482700000000000232434
00500000000000000027349091590936527851800000000000695300003440760000e0060000000000095695300003440760000e00622
053936274630000000000097217198593495480428e006000000000000002264187706077533648270000000000074059119530430508
3953610000e00500000000000000015475893780529948335000000000000000226418770607753364827000000069530000344076000
00500000000000000027349091590936527851800000e0060593273000000000000000112059202895925247118492524711809177242
Duplicate found text file
00500000000000000027349091590936527851800000000000695300003440760000e0060000000000095695300003440760000e00622
00500000000000000027349091590936527851800000e0060593273000000000000000112059202895925247118492524711809177242