Hi Thanks for the response..But I'm not able tomend it as per my req..(I need some more expertise in PERL)
here is what I need..
su1_file 1
"abc" 6 8
"def" 7 9
"ghi" 2 5
su2_file 2
"abc" 60 8
"def" 70 900
"ghi" 20 5
su_file 3
"abc" 600 8
"def" 700 900
"ghi" 200 5
Output file:
Header su_file1 su_file2 su_file3 average ...mu1_ m
+u2_ mu3_
abc 6 60 600 ***
def 7 70 700 ***
ghi 2 20 200 ***
so @su1 will have 6,7,2 @su2 will have 60,70,20 etc..But I dont know how many such files in mu and su..there might be Su9, su10 etc. Runtime I need to check the number of files, get those values and print to one single file. Once I parse the values from each file, i have to print the values in columnwise. I think the solution given by you does an average (some calculation) of all su values in column 1 ..
Can u pls help me. ??
Now I have hard coded the number of files to only 3.
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.