#!/bin/ash # print default routes route -n | grep UG | cut -c 17- | cut -d' ' -f -1 | sed s/^/G/ # print neighbors route -n | grep UH | cut -d' ' -f -1 | sed s/^/N/