As I understand it the input file has hundred of columns like this (transposed)

Columns Row 1 Row 2 ... etc for 1000s rows Index 1 2 TargetID g00000029 cg00000108 ProbeID_A 14782418 12709357 ProbeID_B 14782418 12709357 VP1.AVG_Beta 0,7469755 0,9218118 VP1.Intensity 2793 3609 VP1.Avg_NBEADS_A 15 12 VP1.Avg_NBEADS_B 15 12 VP1.BEAD_STDERR_A 3,382,405 4,474,464 VP1.BEAD_STDERR_B 7,203,749 1,550,186 VP1.Signal_A 632 190 VP1.Signal_B 2161 3419 VP1.Detection Pval 0,00 0,00 VP2.AVG_Beta 0,6678689 0,9602971 VP2.Intensity 2950 7305 VP2.Avg_NBEADS_A 18 11 VP2.Avg_NBEADS_B 18 11 VP2.BEAD_STDERR_A 9,640,222 3,527,683 VP2.BEAD_STDERR_B 1,268,078 1,308,559 VP2.Signal_A 913 194 VP2.Signal_B 2037 7111 VP2.Detection Pval 0,00 0,00 .. .. repeated for hundreds of VPs

and the OP wants to create 100's of individual files like this (but transposed)

File VP1.txt ------------ Index 1 2 ... etc for 1000s rows TargetID g00000029 cg00000108 ProbeID_A 14782418 12709357 ProbeID_B 14782418 12709357 VP1.AVG_Beta 0,7469755 0,9218118 VP1.Intensity 2793 3609 VP1.Avg_NBEADS_A 15 12 VP1.Avg_NBEADS_B 15 12 VP1.BEAD_STDERR_A 3,382,405 4,474,464 VP1.BEAD_STDERR_B 7,203,749 1,550,186 VP1.Signal_A 632 190 VP1.Signal_B 2161 3419 VP1.Detection Pval 0,00 0,00 File VP2.txt ------------ Index 1 2 ... etc for 1000s rows TargetID g00000029 cg00000108 ProbeID_A 14782418 12709357 ProbeID_B 14782418 12709357 VP2.AVG_Beta 0,6678689 0,9602971 VP2.Intensity 2950 7305 VP2.Avg_NBEADS_A 18 11 VP2.Avg_NBEADS_B 18 11 VP2.BEAD_STDERR_A 9,640,222 3,527,683 VP2.BEAD_STDERR_B 1,268,078 1,308,559 VP2.Signal_A 913 194 VP2.Signal_B 2037 7111 VP2.Detection Pval 0,00 0,00
poj

In reply to Re^4: Spliting Table by poj
in thread Spliting Table by tschelineli

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.