dear monks.
I need to open 200 csv files and grab 3rd column in each file.
I would like to write all 200 columns to a file for analysis.
datafile1:
1 has 0.334
2 has 0.986
3 has 0.787
....
948
datafile2:
1 has 0.894
2 has 0.586
3 has 0.187
....
948
there are 200 such files.
my output should look like
output:
1 has 0.334 0.894 .......... 200 columns
2 has 0.986 0.586 ...........200 columns
3 has 0.787 0.187 ............200 columns
....
948
can i open 200files in a loop rather than opening one by one.
thank you.
any help is appreciated
Original content restored above by GrandFather
syntax error at ./traj_pm line 26, near "$fds["
BEGIN not safe after errors--compilation
I have this error ...can you please tell me how to get rid of this error
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.