your script

for FILENAME in 'ls /u1/copeland/rams3a/van/*00'

This line is the problem. Use for FILENAME in `ls /u1/copeland/rams3a/van/*00`
instead.

------------------------------------------------------------------------
Rick Thompson- Research Assistant E-mail: rick@cast.uark.edu
Center for Advanced Spatial Technologies Telephone: (501) 575-5736
Ozark Hall Rm. 12 Fax: 575-3846
University of Arkansas
Fayetteville, AR 72701