MCProduction » download_all_http.sh
1 |
#To get an index.html:
|
---|---|
2 |
|
3 |
if [ $# -eq 0 ]; |
4 |
then
|
5 |
echo "No Directory name supplied" |
6 |
echo "./download_all_http.sh LH2_718" |
7 |
exit
|
8 |
fi
|
9 |
|
10 |
|
11 |
rm index.html get_files.tmp
|
12 |
|
13 |
wget http://gfe02.grid.hep.ph.ic.ac.uk:8301/dmaletic/MCproduction/LH2_systematics/${1}/000183/ |
14 |
|
15 |
cat index.html | grep href | grep Down | sed s/"\""/" "/g | awk '{print "wget http://gfe02.grid.hep.ph.ic.ac.uk:8301"$3}' | sed s/"..\/..\/..\/..\/.."//g > get_files.tmp |
16 |
chmod a+x get_files.tmp
|
17 |
./get_files.tmp |