sort data > sorted_data
Alternatively, the following would be an efficient Perl solution:
my %grouped; while (...) { my @fields = ...; push @{ $grouped{$fields[0]} }, \@fields; } for my $group (values %grouped) { ... }
In reply to Re: a little problem with sorting my data
by ikegami
in thread a little problem with sorting my data
by aash08
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |