ask4n

Wget Interativo (Via shell)

Aug 2nd, 2012
115
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2.  
  3. echo "+++++++++++++++++++++++++++++++"
  4. echo "+Bem vindo ao Wget Interativo!+ Versão 0.1 - Autor: ask4n"
  5. echo "+++++++++++++++++++++++++++++++"
  6. sleep 1
  7. echo "-> Insira o Link para download:"
  8. read link
  9. echo "-> Onde deseja salvar o arquivo? ex: /home/user/Downloads/"
  10. read dir
  11. echo "-> OK, iniciando download..."
  12. sleep 1
  13. echo
  14. echo
  15. wget $link --directory-prefix=$dir
  16. sleep 1
  17. echo
  18. echo "+++++++++++++++++++++"
  19. echo "+Download Concluído!+ -> O arquivo baixado se encontra em: $dir"
  20. echo "+++++++++++++++++++++"
  21. echo
RAW Paste Data