Kaspars Zibarts

If you are tired typing netstat -nr | grep ^x.x.x.x

Discussion created by Kaspars Zibarts on Nov 16, 2018
Latest reply on Nov 16, 2018 by Timothy Hall

Might be very obvious for some but in case your routing table is long and you need to search for routes with grep, you might want to add a "shortcut" as follows


echo '#!/bin/bash'>/usr/bin/showroute; echo 'netstat -nr|grep ^$1'>/usr/bin/showroute; chmod +x /usr/bin/showroute


then use showroute as your command instead of netstat to find routes, i.e



of course you can change showroute alias to something else