Salut,
Quelque chose comme ça :
#!/bin/bash
if [ $# -eq 1 ]; then
f_temp="./timetempo.tmp";
t1=`date +%M%S%N`
wget -q -O $f_temp $1
t2=`date +%M%S%N`
t=`echo "($t2 - $t1) / 1000000000" | bc -l | cut -c1-11`
echo "Temps de telechargement : $t seconde(s)"
rm -f $f_temp
else
echo "Usage : $0 <url>"
fi
?