Herramientas Personales

descargas.sh

por Ruiz de Clavijo, Paulino Última modificación 22/11/2019 16:55

descargas.sh — text/x-sh, 0Kb

Contenido del Archivo

#!/bin/bash

if [ -z $1 ] || [ -z $2 ] ;  then
 echo "Uso: $0 NUMERO_DESCARGAS URL_COMPLETA"
 exit 255
fi;

#set -x

LIMIT=$1
for ((a=1; a <= LIMIT  ; a++))
do
  xterm -bg blue -fg white -geometry 80x5  -e "wget $2 -O /dev/null"&
  echo -n "$a"
  #sleep 0.1
  echo -n ".."
done
echo " "
echo "Pulsa INTRO para parar todas las descargas ..."
read
killall wget
echo "¡Hecho!"
Acciones de Documento