How to split text file into multiple other files based on its contents
I have a large tab-delimited text file with the following structure: AAA.xyz<tab><various other tab-delimited values> AAA.xyz<tab><various other tab-delimited values> BB.xyz<tab><various other tab-delimited values> BB.xyz<tab><various other tab-delimited values> CCCC.xyz<tab><various other tab-delimited values> DDD.xyz<tab><various other tab-delimited values> etc I want to split this file into several other files, each called AAA.xyz, BB.xyz, CCCC.xyz, DDD.xyz, etc so that each file contains the <various other tab-delimited values> but not the first (AAA.xyz) value; e.g. if the first line is A
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.