[gull] sort numerique

Philippe Faehndrich ph.faehndrich at bluewin.ch
Tue May 23 11:09:13 CEST 2006


Le Mardi 23 Mai 2006 10:12, Anthony a écrit :
> Hello,
>
> i need to sort the following file based on the first numeric collomn,
> and then the second collumn:
>
> 8 13
> 11 5
> 8 2
>
> Any suggestions?

cat File | sort -n -k1 -k2
or
sort -n -k1 -k2 File

PhF




More information about the gull mailing list