#!/bin/sh for i in [012]*.html; do ( echo '

Overview

' sed -e '1,/

/d' -e '/nowrap>$/,$d' < $i ) > `basename $i .html` echo $i done