#!/bin/bash


echo -n "Enter server conf files directory: "
    read dirX
echo -n "Enter server current shop index 1.0.XXXX.0: "
    read ipX
echo -n "Enter server shop index 1.0.XXXX.0 which will be updated: "
    read ipN  
 
echo "Data in the directory: '$dirX' will be changed from $ipX to $ipN AFTER 25 SECONDS."
echo "If data is not correct press Ctrl+C"
sleep 20
find $dirX -name "*" -exec sed -i "s/$ipX/$ipN/g" {} \;
