I have around 150 files with 4 columns each but variable row lengths that I need to combine by column. I do not have any common column. I want to use "paste " command in unix to do it but before that I have to get all my files to be of equal length.
Below are examples of my input files: 01-16A1-325 01-16A1-325 01-16A1-325 01-16A1-325 01-16A1-325 01-16A1-325 01-16A1-325 01-16A1-325 A T G C 11 47 0 1 11 47 0 0 11 48 0 0 12 50 0 0 12 53 0 0 13 56 0 0 13 60 0 0 13 62 0 0 13 63 0 0 13 64 0 0 13 66 0 0 14 68 0 0 14 70 0 0 14 72 0 0 ===================================== 01-17B7-325 01-17B7-325 01-17B7-325 01-17B7-325 01-17B7-325 01-17B7-325 01-17B7-325 01-17B7-325 A T G C 52 57 56 9 53 59 58 9 54 62 62 10 57 67 69 10 61 73 80 10 68 81 95 11 74 87 112 11 81 92 127 11 86 95 141 11 92 99 157 11 98 105 178 12 104 112 205 12 110 119 237 13 116 126 271 13 121 131 307 12 126 136 346 11 133 142 389 11 141 151 439 10 151 162 494 10 161 177 556 11 171 196 622 11
Would appreciate any help. Thanks Biobee

In reply to filling up rows in files to make them of equal length by biobee07

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.