Angharad has asked for the wisdom of the Perl Monks concerning the following question:
I'm trying to think of a way of solving what seems to be a relatively simple problem but is turning out to be a bit more tricky than I thought.
I have in a directory 73 text files. Each text file looks something like this.
Right now ... because each small file has to be printed in the larger file with the datapoints going down the page as it where, the only method my pea brain comes up with is a horrible bested loop idea that will probably grind my wee computer to a halt.
I'm not looking for code necessarily (although all donations gratefully recieved) just suggestions of how to tackle this would be appreciated. Thanks
I have in a directory 73 text files. Each text file looks something like this.
I want to create another file with all but one of these text files included ... but printed like this3.544 3.765 6.2341 8.9756
My task is to create 73 text files with all the datapoints of the files in the directory printed bar one ... the file to be excluded perhaps parsed to the program via the command line.file1datapt1 file2datapt1 file3datapt1 file1datapt2 file2datapt2 file3datapt2 etc ...
Right now ... because each small file has to be printed in the larger file with the datapoints going down the page as it where, the only method my pea brain comes up with is a horrible bested loop idea that will probably grind my wee computer to a halt.
I'm not looking for code necessarily (although all donations gratefully recieved) just suggestions of how to tackle this would be appreciated. Thanks
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: printing contents of small files into one larger one
by holli (Abbot) on Nov 09, 2005 at 13:17 UTC | |
Re: printing contents of small files into one larger one
by mlh2003 (Scribe) on Nov 09, 2005 at 11:50 UTC | |
Re: printing contents of small files into one larger one
by inman (Curate) on Nov 09, 2005 at 12:18 UTC | |
by virtualsue (Vicar) on Nov 09, 2005 at 13:59 UTC | |
by inman (Curate) on Nov 09, 2005 at 17:12 UTC | |
by mlh2003 (Scribe) on Nov 09, 2005 at 12:41 UTC | |
Re: printing contents of small files into one larger one
by Fletch (Bishop) on Nov 09, 2005 at 14:26 UTC | |
Re: printing contents of small files into one larger one
by Angharad (Pilgrim) on Nov 09, 2005 at 13:42 UTC |
Back to
Seekers of Perl Wisdom