jdporter has asked for the wisdom of the Perl Monks concerning the following question:
One of the packages in Scaladex (Scala's equivalent of CPAN, I guess) states its motivation in the form of the following problem:
- List all .csv files in a directory by increasing order of file size
- Drop the first line of each file and concat the rest into a single output file
- Split the above output file into n smaller files without breaking up the lines in the input files
- gzip each of the smaller output files
How would you do this in Perl?
I reckon we are the only monastery ever to have a dungeon stuffed with 16,000 zombies.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Complex file manipulation challenge
by haukex (Archbishop) on Aug 13, 2019 at 17:52 UTC | |
Re: Complex file manipulation challenge
by Tux (Canon) on Aug 13, 2019 at 17:51 UTC | |
by haukex (Archbishop) on Aug 13, 2019 at 18:01 UTC | |
by Tux (Canon) on Aug 13, 2019 at 18:24 UTC | |
by haukex (Archbishop) on Aug 13, 2019 at 18:54 UTC | |
Re: Complex file manipulation challenge
by atcroft (Abbot) on Aug 13, 2019 at 19:20 UTC | |
Re: Complex file manipulation challenge
by Marshall (Canon) on Aug 13, 2019 at 20:10 UTC | |
by swl (Parson) on Aug 13, 2019 at 21:54 UTC | |
by Marshall (Canon) on Aug 13, 2019 at 22:16 UTC | |
by Tux (Canon) on Aug 14, 2019 at 06:32 UTC | |
by karlgoethebier (Abbot) on Aug 14, 2019 at 11:28 UTC | |
|
Back to
Seekers of Perl Wisdom