#!/bin/csh -f
# usual.sdf.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.sdf.csh
#         using wget, do:     csh usual.sdf.csh wget
#
setenv base http://zinc.docking.org/db/bysubset/6
setenv fn .zinc.$$
cat <<+ > $fn
6_p0.0.sdf.gz
6_p0.1.sdf.gz
6_p0.10.sdf.gz
6_p0.100.sdf.gz
6_p0.101.sdf.gz
6_p0.102.sdf.gz
6_p0.103.sdf.gz
6_p0.104.sdf.gz
6_p0.105.sdf.gz
6_p0.106.sdf.gz
6_p0.107.sdf.gz
6_p0.108.sdf.gz
6_p0.109.sdf.gz
6_p0.11.sdf.gz
6_p0.110.sdf.gz
6_p0.111.sdf.gz
6_p0.112.sdf.gz
6_p0.113.sdf.gz
6_p0.114.sdf.gz
6_p0.115.sdf.gz
6_p0.116.sdf.gz
6_p0.117.sdf.gz
6_p0.118.sdf.gz
6_p0.119.sdf.gz
6_p0.12.sdf.gz
6_p0.120.sdf.gz
6_p0.121.sdf.gz
6_p0.122.sdf.gz
6_p0.123.sdf.gz
6_p0.124.sdf.gz
6_p0.125.sdf.gz
6_p0.126.sdf.gz
6_p0.127.sdf.gz
6_p0.128.sdf.gz
6_p0.129.sdf.gz
6_p0.13.sdf.gz
6_p0.130.sdf.gz
6_p0.14.sdf.gz
6_p0.15.sdf.gz
6_p0.16.sdf.gz
6_p0.17.sdf.gz
6_p0.18.sdf.gz
6_p0.19.sdf.gz
6_p0.2.sdf.gz
6_p0.20.sdf.gz
6_p0.21.sdf.gz
6_p0.22.sdf.gz
6_p0.23.sdf.gz
6_p0.24.sdf.gz
6_p0.25.sdf.gz
6_p0.26.sdf.gz
6_p0.27.sdf.gz
6_p0.28.sdf.gz
6_p0.29.sdf.gz
6_p0.3.sdf.gz
6_p0.30.sdf.gz
6_p0.31.sdf.gz
6_p0.32.sdf.gz
6_p0.33.sdf.gz
6_p0.34.sdf.gz
6_p0.35.sdf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z
6_p1.11.sdf.gz
6_p1.12.sdf.gz
6_p1.13.sdf.gz
6_p1.14.sdf.gz
6_p1.15.sdf.gz
6_p1.16.sdf.gz
6_p1.17.sdf.gz
6_p1.18.sdf.gz
6_p1.2.sdf.gz
6_p1.3.sdf.gz
6_p1.4.sdf.gz
6_p1.5.sdf.gz
6_p1.6.sdf.gz
6_p1.7.sdf.gz
6_p1.8.sdf.gz
6_p1.9.sdf.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:54 PST 2015
# This is the end of the csh script.
