rm *SM.html for FILE in *html do echo $FILE BASE=`basename ${FILE} .html` echo $BASE sed 's/=400/=280/g' $FILE > $BASE"_SM.html" done sed 's/.html/_SM.html/g' clusters_SM.html > cluster_SM.html sed 's/Galaxy Cluster/smaller<\/i> Galaxy Cluster/g' cluster_SM.html > clusters_SM.html sed 's/smaller images/bigger images/g' clusters_SM.html > cluster_SM.html sed 's/_SM_SM//g' cluster_SM.html > clusters_SM.html sed 's/IMG/IMG/g' clusters_SM.html > cluster_SM.html sed 's/ (for PCs)//g' cluster_SM.html > clusters_SM.html cp clusters_SM.html cluster_SM.html