Hello fellow monks.
I have a task to do and I was wondering if this can be done or not.
Suppose you have 50 file all named RESULT_FILE.1, RESULT_FILE.2, RESULT_FILE.3 ... until RESULT_FILE_50.
In each file you have 4 names with 4 values:
Kostas [NUMBER1] Maria [NUMBER2] Georgia [NUMBER3] Nikos [NUMBER4]
What I wanted to do is to construct a tab-separated file which would look like:
NAME RESULTS_FILE1 RESULTS_FILE2 RESULTS_FILE3 Kostas [NUMBER1] [NUMBER1] [NUMBER1] Maria [NUMBER2] [NUMBER2] [NUMBER2] Georgia [NUMBER3] [NUMBER3] [NUMBER3] Nikos [NUMBER4] [NUMBER4] [NUMBER4]
What I thought unfortunately didn't work out. I used find as Unix command to find all RESULTS_FILE, then I isolated the number after each RESULTS_FILE (i.e. 1 for RESULTS_FILE1, 2 for RESULTS_FILE2 etc) and created small sub-files for each RESULTS_FILE where I printed the numbers for each name and before each number I printed as many TABS as the number of the RESULTS_FILE i, so as, when I concatanate all these subfiles, I would end up with a large one and the numbers for each person would be printed out in the correct column ( I want to paste the data in a spreadsheet)... But, when I contatanated all these small sub-files, I realised that the contents of each sub-file where pasted UNDER the contents of the other (and not side-by-side as I hoped...
Any ideas on how to do it correctly???

In reply to Is this possible by Anonymous Monk

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.