eps*_*on8 2 unix terminal grep traceroute
如何仅打印traceroute运行的 IP 地址列表?
我不想要像这样的网址something-online.net和它们的往返时间。
如何traceroute从终端获得“简单” ?
你在找traceroute -n吗?从man页面:
-n Do not try to map IP addresses to host names when displaying
them.
Run Code Online (Sandbox Code Playgroud)
编辑:评论增加了删除往返时间的进一步要求。
要显示除往返时间(序列和 IP 地址)以外的所有内容,CSV 格式:
traceroute -n 8.8.8.8 | tail -n+2 | awk '{ print $1 "," $2 }'
Run Code Online (Sandbox Code Playgroud)