#!/usr/bin/perl -wd open( FILE, "file.dat" ) || die "Cannot Open file ($!)\n"; my @output = map { $_->[0] } sort { $a->[1] cmp $b->[1] } map { [$_, (split(/\|/,$_))[1]] } <FILE>; close( FILE ); print @output, "\n";
-derby
In reply to Re: Re: Is this sort of possible
by derby
in thread Is this sort of possible
by Cosmos
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |