tariqahsan has asked for the wisdom of the Perl Monks concerning the following question:
What would be a good way to read an fixed length data file
and based on the first column value generate separate output files?
Sample input file would be like -
T001 Test1 012354 Abcde
T001 Test1 013456 bcdef
T002 Test2 024567 xxxxx
T001 Test1 012354 yyyyy
T003 Test3 02345 cdefg
T002 Test2 000000 56789
Expecting to get 3 files T001.out, T002.out and T003.out for the above input file
containing their respective first column value.
Thanks
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: create separate output files based on the matched values
by ikegami (Patriarch) on Sep 27, 2005 at 21:31 UTC | |
|
Re: create separate output files based on the matched values
by GrandFather (Saint) on Sep 27, 2005 at 21:35 UTC | |
by Skeeve (Parson) on Sep 27, 2005 at 23:12 UTC | |
by GrandFather (Saint) on Sep 27, 2005 at 23:44 UTC | |
by tariqahsan (Beadle) on Nov 10, 2005 at 19:02 UTC | |
by GrandFather (Saint) on Nov 10, 2005 at 19:22 UTC | |
|
Re: create separate output files based on the matched values
by izut (Chaplain) on Sep 27, 2005 at 21:43 UTC | |
by Skeeve (Parson) on Sep 27, 2005 at 23:16 UTC |