Download files from a page

#Bash script to download files from a page #Condition that the download links should follow a format # e.g . http://courses.csail.mit.edu/6.006/fall11/lectures/lecture1.pdf for i in {1..25}; do wget http://courses.csail.mit.edu/6.006/fall11/lectures/lecture$i.pdf; done ## if lectures have modules #e.g. http://npteldownloads.iitm.ac.in/downloads_mp4/106105081/mod01lec01.mp4 for i in {01..99} do for j in {01..99} do wget "http://npteldownloads.iitm.ac.in/downloads_mp4/106106139/mod${i}lec${j}.mp4" done done

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.