Antonio Chay Hidalgo wrote:
> Hola lista!
>
> Mi objetivo es elegir un archivo al azar, dado un directorio.

[...]

> Existe alguna utilidad que entrege numeros aleatorios 

Yo uso

  perl -le 'print rand'

>                                                       o mejor aun, que
> escoja un archivo al azar?

Tal vez esto sirva:

  perl -le 'print $ARGV[int(rand()[EMAIL PROTECTED])]' *

Saludos,

-- 
Cristian Gutierrez                      http://www.dcc.uchile.cl/~crgutier
[EMAIL PROTECTED]                        Jabber:[EMAIL PROTECTED]

"Artificial Intelligence: the art of making computers that behave like
the ones in movies." -- Bill Bulko

Responder a