行雲流水
2012年3月1日 星期四
Get DHCP Assignment Default Gateway
Shell Code:
route
-n
|
grep
'
UG[ \t]
'
|
awk
'
{print $2}
'
Shell Code:
route
-n
|
grep
'
^0\.0\.\0\.0[ \t]\+[1-9][0-9]*\.[1-9][0-9]*\.[1-9][0-9]*\.[1-9][0-9]\+[ \t]\+0\.0\.0\.0[ \t]\+[^ \t]*G[^ \t]*[ \t]
'
|
awk
'
{print $2}
'
沒有留言:
張貼留言
較新的文章
較舊的文章
首頁
訂閱:
張貼留言 (Atom)
沒有留言:
張貼留言