#!/bin/csh -f
# single.mol2.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 single.mol2.csh
#         using wget, do:     csh single.mol2.csh wget
#
setenv base http://zinc.docking.org/db/bysubset/6
setenv fn .zinc.$$
cat <<+ > $fn
6_p0.0.mol2.gz
6_p0.1.mol2.gz
6_p0.10.mol2.gz
6_p0.100.mol2.gz
6_p0.101.mol2.gz
6_p0.102.mol2.gz
6_p0.103.mol2.gz
6_p0.104.mol2.gz
6_p0.105.mol2.gz
6_p0.106.mol2.gz
6_p0.107.mol2.gz
6_p0.108.mol2.gz
6_p0.109.mol2.gz
6_p0.11.mol2.gz
6_p0.110.mol2.gz
6_p0.111.mol2.gz
6_p0.112.mol2.gz
6_p0.113.mol2.gz
6_p0.114.mol2.gz
6_p0.115.mol2.gz
6_p0.116.mol2.gz
6_p0.117.mol2.gz
6_p0.118.mol2.gz
6_p0.119.mol2.gz
6_p0.12.mol2.gz
6_p0.120.mol2.gz
6_p0.121.mol2.gz
6_p0.122.mol2.gz
6_p0.123.mol2.gz
6_p0.124.mol2.gz
6_p0.125.mol2.gz
6_p0.126.mol2.gz
6_p0.127.mol2.gz
6_p0.128.mol2.gz
6_p0.129.mol2.gz
6_p0.13.mol2.gz
6_p0.130.mol2.gz
6_p0.14.mol2.gz
6_p0.15.mol2.gz
6_p0.16.mol2.gz
6_p0.17.mol2.gz
6_p0.18.mol2.gz
6_p0.19.mol2.gz
6_p0.2.mol2.gz
6_p0.20.mol2.gz
6_p0.21.mol2.gz
6_p0.22.mol2.gz
6_p0.23.mol2.gz
6_p0.24.mol2.gz
6_p0.25.mol2.gz
6_p0.26.mol2.gz
6_p0.27.mol2.gz
6_p0.28.mol2.gz
6_p0.29.mol2.gz
6_p0.3.mol2.gz
6_p0.30.mol2.gz
6_p0.31.mol2.gz
6_p0.32.mol2.gz
6_p0.33.mol2.gz
6_p0.34.mol2.gz
6_p0.35.mol2.gz
6_p0.36.mol2.gz
6_p0.37.mol2.gz
6_p0.38.mol2.gz
6_p0.39.mol2.gz
6_p0.4.mol2.gz
6_p0.40.mol2.gz
6_p0.41.mol2.gz
6_p0.42.mol2.gz
6_p0.43.mol2.gz
6_p0.44.mol2.gz
6_p0.45.mol2.gz
6_p0.46.mol2.gz
6_p0.47.mol2.gz
6_p0.48.mol2.gz
6_p0.49.mol2.gz
6_p0.5.mol2.gz
6_p0.50.mol2.gz
6_p0.51.mol2.gz
6_p0.52.mol2.gz
6_p0.53.mol2.gz
6_p0.54.mol2.gz
6_p0.55.mol2.gz
6_p0.56.mol2.gz
6_p0.57.mol2.gz
6_p0.58.mol2.gz
6_p0.59.mol2.gz
6_p0.6.mol2.gz
6_p0.60.mol2.gz
6_p0.61.mol2.gz
6_p0.62.mol2.gz
6_p0.63.mol2.gz
6_p0.64.mol2.gz
6_p0.65.mol2.gz
6_p0.66.mol2.gz
6_p0.67.mol2.gz
6_p0.68.mol2.gz
6_p0.69.mol2.gz
6_p0.7.mol2.gz
6_p0.70.mol2.gz
6_p0.71.mol2.gz
6_p0.72.mol2.gz
6_p0.73.mol2.gz
6_p0.74.mol2.gz
6_p0.75.mol2.gz
6_p0.76.mol2.gz
6_p0.77.mol2.gz
6_p0.78.mol2.gz
6_p0.79.mol2.gz
6_p0.8.mol2.gz
6_p0.80.mol2.gz
6_p0.81.mol2.gz
6_p0.82.mol2.gz
6_p0.83.mol2.gz
6_p0.84.mol2.gz
6_p0.85.mol2.gz
6_p0.86.mol2.gz
6_p0.87.mol2.gz
6_p0.88.mol2.gz
6_p0.89.mol2.gz
6_p0.9.mol2.gz
6_p0.90.mol2.gz
6_p0.91.mol2.gz
6_p0.92.mol2.gz
6_p0.93.mol2.gz
6_p0.94.mol2.gz
6_p0.95.mol2.gz
6_p0.96.mol2.gz
6_p0.97.mol2.gz
6_p0.98.mol2.gz
6_p0.99.mol2.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  Sun Jan 4 11:57:53 PST 2015
# This is the end of the csh script.
