El 23/06/10, Diego Saravia <[email protected]> escribió:
en relacion a lo que me sugirio pablo del ls -v, bueno resulta que el sort usa la misma funcion, pero me pasa lo siguiente
echo -e "100\n12" | sort -V
en un suse da 100 12 en ubuntu 12 100 (que es lo esperable)
quien se anima a probarlo en su maquina?
$> echo -e "100\n12" | sort -V 12 100 $> sort --version sort (GNU coreutils) 8.5 Copyright (C) 2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Written by Mike Haertel and Paul Eggert. $> uname -a Linux aiferricorti 2.6.33-ARCH #1 SMP PREEMPT Thu May 13 12:06:25 CEST 2010 i686 Intel(R) Pentium(R) Dual CPU T2370 @ 1.73GHz GenuineIntel GNU/Linux -- Facundo Andrés Bianco (Vando.) GNUPG ID: 0x89C1B42F XMPP: [email protected] omb: identi.ca/vando SoftwareLibre.org.ar BuenosAiresLibre.org.ar