#! /bin/bash # To download with wget all files kept in a particular directory in an url into a local directory, say ~/temp, run the following script in a directory. # In this example, the directory to download from the url http://www2.fizik.usm.my is /configrepo/howto/mylammps/. You want to download everything in http://www2.fizik.usm.my/configrepo/howto/mylammps/ and keep these content in ~/temp. cd ~/temp wget -r -l1 --no-parent http://www2.fizik.usm.my/configrepo/howto/mylammps/ cp www2.fizik.usm.my/configrepo/howto/mylammps/* . rm -rf www2.fizik.usm.my rm *.index