#!/bin/sh for file in `grep -l '$FormTarget' *.php` do echo $file cat $file | sed 's#$FormTarget#/#' > mwf.php mv mwf.php $file # echo -n "Next ? " # read ans done