#!/bin/bash
# usage cpedit $1 $2 $3 will copy file $1$3 to $2$3 and change references in
#              the file to $1 to $2
cat $1$3 | sed s/$1/$2/g > $2$3