hostloc 让 echo “2: eth0:” | awk ‘{print $2}’ 输出eth0 我根据文档写了一个 但是感觉很 low 大佬们还有其他 awk 的方法删除后一个字符嘛? ip a | gre…