Capture gateway IP using shell script
From Notes_Wiki
<yambe:breadcrumb>Useful_bash_shell_scripts|Useful bash shell scripts</yambe:breadcrumb>
Capture gateway IP using shell script
To capture gateway IP using shell-script use:
IP=$(/sbin/ip route | awk '/default/ { print $3 }')