#!/bin/sh
TARGETS="
*.c
*.cpp
*.h
*.hpp
"
if test $# != 2; then
echo "error: bogus number of arguments"
exit 1
fi
if test -z "$1"; then
echo "error: first argument is of zero length"
exit 1
fi
for target in $TARGETS; do
sed -i "s/$1/$2/g" "$target"
done