[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

RE: Tool for changing ips in all needed config files...



Hi,

listbot@gmx.de wrote:
> is there a tool to change all occurences of a servers ip-address?

in bash:

for file in /etc/*; do
  perl -pi -e "s/12.34.56.78/23.34.45.56/ $file;"
done


(not tested - make a backup before)

Mike



Reply to: