#!/bin/sh

#  srchrepl [find string] [replace string] [list of files]
#
#  Note: This only replaces the first occurance on a line.
#        Run multiple time to fix all occurances.
#
#  Warning: Do not run srchrepl against image files, they will be corrupted.
#
#
#To search for mis applications, paste this:
# find . -type f -exec fgrep -i www.mis {} \; -print
#To run, update the line below, copy this file to the directory where it should start, and paste this on the command line: ./srchrepl-udaily.sh
#NOTE: this changed the permissions on the files to rwrwrw and we need to change them to executable when done.

/home/usra/55/21914/srchrepl "https://chico.nss.udel.edu/psview" "http://www.udel.edu/webviews" `find . -name \*.html -print`

#Executed on 08-27-04 in this order from bottom to top
#/home/usra/55/21914/srchrepl "https://www.mis4.udel.edu/psview" "https://chico.nss.udel.edu/psview" `find . -name \*.html -print`
#/home/usra/55/21914/srchrepl "https://www.mis4.udel.edu/udaily/suggestion.html" "https://chico.nss.udel.edu/udaily/sugg_login.jsp" `find . -name \*.html -print`
#/home/usra/55/21914/srchrepl "http://www.mis4.udel.edu/udaily/index.html?pageCat=alumni" "http://www.udel.edu/udaily-alumni" `find . -name \*.html -print`
#/home/usra/55/21914/srchrepl "http://www.mis4.udel.edu/udaily/index.html" "http://www.udel.edu/udaily" `find . -name \*.html -print`
#/home/usra/55/21914/srchrepl "https://www.mis4.udel.edu/udaily/suggestion.html" "https://chico.nss.udel.edu/udaily/sugg_login.jsp" `find . -name \*.html -print`
#/home/usra/55/21914/srchrepl "https://www.mis4.udel.edu/psview" "https://chico.nss.udel.edu/psview/" `find . -name \*.html -print`
#/home/usra/55/21914/srchrepl "http://www.mis4.udel.edu/udaily/index.html?pageCat=alumni" "http://www.udel.edu/udaily-alumni" `find . -name \*.html -print`
#/home/usra/55/21914/srchrepl "https://chico.nss.udel.edu/udaily/suggestion.html" "https://chico.nss.udel.edu/udaily/sugg_login.jsp" `find . -name \*.html -print`
#/home/usra/55/21914/srchrepl "https://www.mis4.udel.edu/psview" "https://chico.nss.udel.edu/psview/" `find . -name \*.html -print`
#/home/usra/55/21914/srchrepl "http://www.mis4.udel.edu/javascript/sticky.js" "http://chico.nss.udel.edu/javascript/sticky.js" `find . -name \*.html -print`
#Executed on 08-18-04 in this order from bottom to top
#/home/usra/55/21914/srchrepl "https://www.mis4.udel.edu/psview/" "https://chico.nss.udel.edu/psview/" `find . -name \*.html -print`
#/home/usra/55/21914/srchrepl "http://www.mis4.udel.edu/Events/CampusEvents.html?splash" "http://www.udel.edu/events" `find . -name \*.html -print`
#/home/usra/55/21914/srchrepl "http://www.mis4.udel.edu/udaily/UDaily" "http://www.udel.edu/udaily" `find . -name \*.html -print`
#/home/usra/55/21914/srchrepl "http://www.mis3.udel.edu:90/servlet/udaily" "http://www.udel.edu/udaily" `find . -name \*.html -print`
#/home/usra/55/21914/srchrepl "http://www.mis3.udel.edu:90/servlet/udaily" "http://www.udel.edu/udaily" `find . -name \*.html -print`
#/home/usra/55/21914/srchrepl "http://www.mis3.udel.edu:90/servlet/udaily#" "http://www.udel.edu/udaily" `find . -name \*.html -print`
#Executed on 08-17-04 in this order from bottom to top
#/home/usra/55/21914/srchrepl "http://www.mis4.udel.edu/udaily/email.jsp" "http://chico.nss.udel.edu/udaily/email.jsp" `find . -name \*.html -print`
#/home/usra/55/21914/srchrepl "http://www.mis3.udel.edu/servlet/udaily" "http://www.udel.edu/udaily" `find . -name \*.html -print`
#/home/usra/55/21914/srchrepl "http://www.mis2.udel.edu/people.html" "http://www.udel.edu/peoplesearch" `find . -name \*.html -print`
#/home/usra/55/21914/srchrepl "http://www.mis3.udel.edu:90/servlet/udaily/" "http://www.udel.edu/udaily" `find . -name \*.html -print`
#/home/usra/55/21914/srchrepl "http://www.mis4.udel.edu/udaily/index.html?pageCat=alumni" "http://www.udel.edu/udaily-alumni" `find . -name \*.html -print`
#/home/usra/55/21914/srchrepl "http://www.mis4.udel.edu/udaily/index.html?pageCat=parents" "http://www.udel.edu/udaily-parents" `find . -name \*.html -print`

#done

