I\'m trying to get the default gateway, using the destination 0.0.0.0
0.0.0.0
I used this command: netstat -rn | grep 0.0.0.0
netstat -rn | grep 0.0.0.0
And it return
/sbin/route |egrep "^default" |cut -d' ' -f2-12 #and 'cut' to taste...