#!/bin/bash

IP=`ip route get 8.8.8.8 | awk 'NR==1 {print $NF}'`
sed -i s/\<your_ip\>/$IP/g $1


#!/bin/bash

IP=`ip route get 8.8.8.8 | awk 'NR==1 {print $NF}'`
sed -i s/\<host\>/$IP/g $1


Fix sed command to replace the right string
Fix sed command to replace the right string
