bengalliboy
MIS
Hi
What would be the best way to split a file into pieces based on the 1st column (say 8 char, fixed length), some thing like this: The text file file1 looks like this:
ABCD001 asfafggfdggfgfg
ABCD001 hjhjhjh
ABCD001 hghgh
ABCD002 hjhjhj
ABCD002 jhhj
So I want: file2
ABCD001 asfafggfdggfgfg
ABCD001 hjhjhjh
ABCD001 hghgh
and file2:
ABCD002 hjhjhj
ABCD002 jhhj
TIA
What would be the best way to split a file into pieces based on the 1st column (say 8 char, fixed length), some thing like this: The text file file1 looks like this:
ABCD001 asfafggfdggfgfg
ABCD001 hjhjhjh
ABCD001 hghgh
ABCD002 hjhjhj
ABCD002 jhhj
So I want: file2
ABCD001 asfafggfdggfgfg
ABCD001 hjhjhjh
ABCD001 hghgh
and file2:
ABCD002 hjhjhj
ABCD002 jhhj
TIA