#!/bin/bash for year in $(seq 1994 2013) ; do for file in $(find $year -name "msg*.html"); do if ! grep -q stylesheet $file ; then echo "$file needs editing" # sed -i -e "s/