lalalala1 has asked for the wisdom of the Perl Monks concerning the following question:
Hi,
I am new to perl, but eager to learn.
I want to extract data from a database with about 500 .txt files stored in one directory. All files contain data with the same structure. From every .txt file, I want the same information and store them in a new .txt file, in such a way that every line contains the data from 1 file. So my goal is to create a .txt file that I can use for data analysis.
For now I have the code that extracts data from one .txt file. What aproach would you suggest to use the same code on all of the .txt files to get the necessary data in one .txt file?
Thank you for your responses!
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Using perl to extract data from multiple .txt files
by rjt (Curate) on Nov 14, 2012 at 15:55 UTC | |
Re: Using perl to extract data from multiple .txt files
by choroba (Cardinal) on Nov 14, 2012 at 15:27 UTC | |
by MidLifeXis (Monsignor) on Nov 14, 2012 at 15:46 UTC | |
by choroba (Cardinal) on Nov 14, 2012 at 16:37 UTC | |
Re: Using perl to extract data from multiple .txt files
by blue_cowdawg (Monsignor) on Nov 14, 2012 at 16:26 UTC | |
Re: Using perl to extract data from multiple .txt files
by Kenosis (Priest) on Nov 14, 2012 at 21:22 UTC | |
by lalalala1 (Initiate) on Nov 15, 2012 at 14:27 UTC |
Back to
Seekers of Perl Wisdom