#!/bin/csh
# This script reads chemical names from the file in it's argument list,
# requests information on these chemicals from webbook.nist.gov using lynx,
# and saves the results to coresponding html files.

foreach chemical (`cat $1`)
  echo Looking up $chemical
  lynx -source "http://webbook.nist.gov/cgi/cbook.cgi?Name=$chemical&Units=SI" > $chemical.html
end
