#!/bin/bash

for f in `find . \( -name '*.php' -o -name '*.css' -o -name '*.js' -o -name '*.sql' \) -print`
do
    #echo $f
    sed -e 's/G4_/G5_/g
            s/\$g4/\$g5/g
            s/g4_/g5_/g
            s/g4s_/g5_/g' $f > tmpfile
    mv tmpfile $f
done

echo "OK"
exit 0
