I have a large tab-delimited text file with the following structure:
AAA.xyz
AAA.xyz
BBB.xyz
BBB.xyz
CCC.xyz
DDD.xyz
etc
I want to split this file into several other files, each called AAA.xyz, BBB.xyz, CCC.xyz, DDD.xyz, etc so that each file contains the
e.g. if the first line is AAA.xyx
I used to be quite good at this sort of thing (many years ago!) using unix/linux shell scripting, but I'm kinda back to basics. My only tools right now are Windows 11 cmd line and Powershell, but I have very little experience with either - so I'm hoping for advice as to what is the minimum toolkit I need as well as how to crack my problem.