Assuming you're using a *nix system (which seems like a safe assumption given that you're talking about load averages), this can be done at a shell prompt without needing Perl, just a little plumbing:
$ join -t, file1.txt file2.txt | join -t, - file3.txt | cut -f 1,2,6,1 +0 -d, WSOMQAVPRA05,93.75,34.78,93.13 wsomdavpra03,90.39,69.04,68.85 wsomddvfxa01,39.22,92.44,46.97 wsompapgtw05,49.6,48.77,30.66
Each join combines two files based on their first field; the -t, tells it to use commas as the field separator (whitespace is the default). This is then sent to cut, which extracts the 1st, 2nd, 6th, and 10th field from each line, again using comma for the field separator (as specified by -d,).

Note that join is dependent on the sort field being in the same order in both input files, so you'll need to sort into temp files if this isn't known to be the case. If you are making temp files, though, you can do a sort <filename> | cut -f1,2 -d, > <tempfile> and eliminate the need for the final cut after joining the files, which makes it a bit easier to generalize to different numbers of files.


In reply to Re: Combining Records From Multiple Files based on Common Key Values by dsheroh
in thread Combining Records From Multiple Files based on Common Key Values by country1

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.