#!/bin/bash cp ./index.html /tmp/savindex.html for i in $(ls *.html); do sed -f ~/css_maker.sed $i >> /tmp/tmp.html && mv /tmp/tmp.html $i && echo "converted $i" done sed -f ~/css_index.sed /tmp/savindex.html > ./index.html && echo "restored index.html" for i in $(ls lab*.html); do sed -f ~/lab.sed $i >> /tmp/tmp.html && mv /tmp/tmp.html $i && echo "repaired lab" done rm /tmp/savindex.html