#!/bin/sh for i in *.c ; do cat $i | sed -e 's/mats_peterson@swipnet.se/matsp888@yahoo.com/g' > $i_tmp mv -f $i_tmp $i done .