I want to make big script on my Debian 7.3 ( something like translated and much more new user friendly enviroment ). I have a problem. I want to use only some of the informa
A slight modification to one of the previous ip route ... solutions, which eliminates the need for a grep:
ip route ...
ip route get 8.8.8.8 | sed -n 's|^.*src \(.*\)$|\1|gp'