I think you could speed up the perl code somewhat by not using the autosplit function.
perl -lne 'print join ",", (split /,/,$_,16)[0..14];' numbers.csv
Should be slightly faster as it need not split the additional 10 fields out before rejoining.
In reply to Re: cut vs split (suggestions)
by demerphq
in thread cut vs split (suggestions)
by sk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |