#!/usr/bin/ksh # # This script writes lists of Alaska netcdf files. It is intended to be used when for some # reason the automatic daily write of file names to the database has failed. # ## Set the environment variables # if [[ -z $THMSOC ]] then THMSOC=/disks/socware/thmsoc_dp_current export THMSOC fi . $THMSOC/src/config/soc_it_to_me.config . $THMSOC/src/config/gbo_ualaska_mirror.config cd $UCB_MIRROR_HOME FIND_TIME=-14 # for longer periods comment out the year month and change paths below year=2012 month=05 while read line do school=$(echo $line | awk -F_ '{print $2}') find ./${school}/${year} -type f -name ${year}${school}\* -mtime ${FIND_TIME} > /home/thmsoc/lphilpotts_stuff/filelists/${school}_netcdf_files done < ${CONFIGDIR}/gima_network.txt exit 0