#!/bin/sh for file in `grep -l '/>' *.php` do echo $file cat $file | sed 's#/>#>#g' > temp.html mv temp.html $file done