删除18.139开头的所有路由 1234ip route grep 18.139 awk '{cmd="ip route del " $1; system(cmd) $1}'export ip=$(ip addr grep -E 'us' grep inet awk -F '/' '{print $1}' awk '{print $4}')cat us02 awk '{cmd1="ip route add ";cmd2=" via ";system(cmd1 $1 cmd2 $ip)}'