#!/bin/sh for foo in $@ do echo $foo sed -e "s/deepc2\.zool/bioinformatics/" $foo > $foo.tmp # mv $foo.tmp $foo done