#!/bin/sh
c="ip route"
for i in $*; do
  test gw = $i && i=via
  test -n != $i && c=$c" "$i
done
set -x
exec $c
