Hello there !
Please help & tell me how I can to calculate quantity of routes ?
I need script which counts the number of routes.
I try to do so:
if ([ip route find where dst-address =0.0.0.0/0]>1) do={beep}
but it doesn't work.
This string: ip route print where dst-address =0.0.0.0/0 works fine - I get list of routes corresponding to the condition,
but how I can to count it ?