#!/bin/bash
export LANG=C
WAS=$1
shift
IS=$1
while (( "$#" )); do
echo $1
sed -e "s@${WAS}@${IS}@g" -i .bak $1
done