export eth=1&&netstat -ie|awk -F'[: ]' 'begin{found=0;} { if (match($0,"eth'"$eth"'")) found=1; else if ((1==found) && match($0,"eth")) found=0; if ((1==found) && match($0,"inet addr:") && match($0,"Bcast:")) print $13; }'

相关文章:

  • 2022-02-11
  • 2022-02-21
  • 2021-12-30
  • 2021-12-10
  • 2021-07-29
  • 2022-12-23
  • 2021-09-22
猜你喜欢
  • 2021-12-07
  • 2022-12-23
  • 2021-05-14
  • 2021-12-12
相关资源
相似解决方案