-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 # cat random_url.sh i=0 #BASE_URL="http://linuxfr.org/" BASE_URL="http://www.debian.org/"
for URL in `wget -q -O - $BASE_URL | \ grep http | cut -d\" -f2 | grep "^http"` do URL_ARRAY[$i]="$URL" i=`expr $i + 1` done RANDOM_URL=`echo $RANDOM % $i | bc` echo ${URL_ARRAY[$RANDOM_URL]} cdlt, jerome -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGocgE3ygQTLujCrQRAusbAKCuSbYTqwHtgprnveom8MzX4zGzsgCfSyf7 EC50zPEWDJk6+0qM0asrveA= =dr2W -----END PGP SIGNATURE----- -- Lisez la FAQ de la liste avant de poser une question : http://wiki.debian.net/?DebianFrench Vous pouvez aussi ajouter le mot ``spam'' dans vos champs "From" et "Reply-To:" To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]