more useful options | |
PerlMonks |
Re: Rearranging columns in multiple text filesby igelkott (Priest) |
on Mar 18, 2013 at 11:27 UTC ( [id://1024014]=note: print w/replies, xml ) | Need Help?? |
Nothing wrong with cut or calling unix commands in general but may as well use the normal Perl commands once you've started. In particular, look into split so for each file you could do something like: There are fancier ways to do this but seems like it'd be best to keep it simple to begin with. The other parts depend on whether you are writing all results to a single file or operating on each file individually, etc.
In Section
Seekers of Perl Wisdom
|
|