#!/bin/csh -f
# usual.db.csh from http://zinc.docking.org
# Run this script to download ZINC
# Requires curl (default) or wget, http://wget.docking.org
#
# Thus, to run this script
#         using curl, do:     csh usual.db.csh
#         using wget, do:     csh usual.db.csh wget
#
setenv base http://zinc.docking.org/db/bysubset/27
setenv fn .zinc.$$
cat <<+ > $fn
27_0.0.db.gz
27_0.1.db.gz
27_0.10.db.gz
27_0.100.db.gz
27_0.101.db.gz
27_0.102.db.gz
27_0.103.db.gz
27_0.104.db.gz
27_0.105.db.gz
27_0.106.db.gz
27_0.107.db.gz
27_0.108.db.gz
27_0.109.db.gz
27_0.11.db.gz
27_0.110.db.gz
27_0.111.db.gz
27_0.112.db.gz
27_0.113.db.gz
27_0.114.db.gz
27_0.115.db.gz
27_0.116.db.gz
27_0.117.db.gz
27_0.118.db.gz
27_0.119.db.gz
27_0.12.db.gz
27_0.120.db.gz
27_0.121.db.gz
27_0.122.db.gz
27_0.123.db.gz
27_0.124.db.gz
27_0.125.db.gz
27_0.126.db.gz
27_0.127.db.gz
27_0.128.db.gz
27_0.129.db.gz
27_0.13.db.gz
27_0.130.db.gz
27_0.131.db.gz
27_0.132.db.gz
27_0.133.db.gz
27_0.134.db.gz
27_0.135.db.gz
27_0.136.db.gz
27_0.137.db.gz
27_0.138.db.gz
27_0.139.db.gz
27_0.14.db.gz
27_0.140.db.gz
27_0.141.db.gz
27_0.142.db.gz
27_0.143.db.gz
27_0.144.db.gz
27_0.145.db.gz
27_0.146.db.gz
27_0.147.db.gz
27_0.148.db.gz
27_0.149.db.gz
27_0.15.db.gz
27_0.150.db.gz
27_0.151.db.gz
27_0.152.db.gz
27_0.153.db.gz
27_0.154.db.gz
27_0.155.db.gz
27_0.156.db.gz
27_0.157.db.gz
27_0.158.db.gz
27_0.159.db.gz
27_0.16.db.gz
27_0.160.db.gz
27_0.161.db.gz
27_0.162.db.gz
27_0.163.db.gz
27_0.17.db.gz
27_0.18.db.gz
27_0.19.db.gz
27_0.2.db.gz
27_0.20.db.gz
27_0.21.db.gz
27_0.22.db.gz
27_0.23.db.gz
27_0.24.db.gz
27_0.25.db.gz
27_0.26.db.gz
27_0.27.db.gz
27_0.28.db.gz
27_0.29.db.gz
27_0.3.db.gz
27_0.30.db.gz
27_0.31.db.gz
27_0.32.db.gz
27_0.33.db.gz
27_0.34.db.gz
27_0.35.db.gz
27_0.36.db.gz
27_0.37.db.gz
27_0.38.db.gz
27_0.39.db.gz
27_0.4.db.gz
27_0.40.db.gz
27_0.41.db.gz
27_0.42.db.gz
27_0.43.db.gz
27_0.44.db.gz
27_0.45.db.gz
27_0.46.db.gz
27_0.47.db.gz
27_0.48.db.gz
27_0.49.db.gz
27_0.5.db.gz
27_0.50.db.gz
27_0.51.db.gz
27_0.52.db.gz
27_0.53.db.gz
27_0.54.db.gz
27_0.55.db.gz
27_0.56.db.gz
27_0.57.db.gz
27_0.58.db.gz
27_0.59.db.gz
27_0.6.db.gz
27_0.60.db.gz
27_0.61.db.gz
27_0.62.db.gz
27_0.63.db.gz
27_0.64.db.gz
27_0.65.db.gz
27_0.66.db.gz
27_0.67.db.gz
27_0.68.db.gz
27_0.69.db.gz
27_0.7.db.gz
27_0.70.db.gz
27_0.71.db.gz
27_0.72.db.gz
27_0.73.db.gz
27_0.74.db.gz
27_0.75.db.gz
27_0.76.db.gz
27_0.77.db.gz
27_0.78.db.gz
27_0.79.db.gz
27_0.8.db.gz
27_0.80.db.gz
27_0.81.db.gz
27_0.82.db.gz
27_0.83.db.gz
27_0.84.db.gz
27_0.85.db.gz
27_0.86.db.gz
27_0.87.db.gz
27_0.88.db.gz
27_0.89.db.gz
27_0.9.db.gz
27_0.90.db.gz
27_0.91.db.gz
27_0.92.db.gz
27_0.93.db.gz
27_0.94.db.gz
27_0.95.db.gz
27_0.96.db.gz
27_0.97.db.gz
27_0.98.db.gz
27_0.99.db.gz
27_1.0.db.gz
27_1.1.db.gz
27_1.10.db.gz
27_1.11.db.gz
27_1.12.db.gz
27_1.13.db.gz
27_1.14.db.gz
27_1.15.db.gz
27_1.16.db.gz
27_1.17.db.gz
27_1.18.db.gz
27_1.19.db.gz
27_1.2.db.gz
27_1.20.db.gz
27_1.3.db.gz
27_1.4.db.gz
27_1.5.db.gz
27_1.6.db.gz
27_1.7.db.gz
27_1.8.db.gz
27_1.9.db.gz
+
if ($#argv>0) then
     wget --base=$base -i < $fn
else
     foreach i (`cat $fn`)
          curl --url $base/$i -o $i
     end
endif
rm -f $fn
# File created on  Wed Sep 24 16:21:49 PDT 2014
# This is the end of the csh script.
