#! /bin/sh #------------------------------------------------------------------- # Script "update_specialsdate" updates the date of the last addition # to the special images, as it appears in every CRWS primary menu in # crws and crws/archive. #------------------------------------------------------------------- olddate=3/3/07 newdate=3/2/07 files=`grep "${olddate}" *.html | awk -F: '{print$1}'` echo "Modifying: $files" for file in ${files}; do if [ -r ${file}.tmp ]; then \rm ${file}.tmp fi mv $file ${file}.tmp cat ${file}.tmp | sed -e "s.${olddate}.${newdate}." > $file done echo "Remove the following files if they are redundant:" ls *.tmp