ChinaUnix.net
相关文章推荐:

awk ip

文本内容模板如下: sshd: refused connect from 2d.44.2d.static.xlhost.com (::ffff:173.45.68.45) sshd(pam_unix)[30680]: authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=173.45.84.35 user=root sshd: refused connect from ::ffff:118.102.25.161 (::ffff:118.102.25.161) sshd: refused connect from 97.6d.7d.seuvenc.luesly.com (::ffff:173.45.91.151) sshd: refused connect from lucas-98-162-...

by lucash - Shell - 2009-05-25 14:57:41 阅读(3418) 回复(13)

相关讨论

我使用nmap 扫描ip段后,得到下面的结果 Starting nmap 3.70 ( http://www.insecure.org/nmap/ ) at 2008-12-23 22:17 CST Interesting ports on 172.22.41.1: PORT STATE SERVICE 22/tcp open ssh Interesting ports on 172.22.41.2: PORT STATE SERVICE 22/tcp open ssh Interesting ports on 172.22.41.3: PORT STATE SERVICE 22/tcp open ssh Interesting ports on 172.22.41.4: PORT STATE SERVICE 22/tcp ope...

by joies - Shell - 2008-12-24 15:06:17 阅读(5827) 回复(30)

如题,比如我想将192.168.0.10分割成192.168.0以及10并分别赋给两个变量,该如何做呢?谢谢!

by taphoon - Shell - 2007-07-25 16:01:06 阅读(2539) 回复(2)

awk 提取日志ip的问题 有很多个日志文件,比如file1 file2 file3 file4 ...... 每个文件的格式都一样,比如: 192.168.1.2 12323232 234234234 23424243234 192.168.10.9 adsfadf adfadfafa adfadfafadfadfa 220.210.21.2 asdfadf adfafdadf asdfafadfadfaf 192.168.1.2 234423 adfadf asdfadfadfaf 我如何提取出所有日志文件中的ip并标明其个数像下面这样: 192.168.1.2 2 192.168.10.9 1 220.210.21.2 1

by MYSQLER - Shell - 2009-08-21 12:01:12 阅读(3186) 回复(6)

ifconfig 结果如下: eth0 Link encap:Ethernet HWaddr 00:0C:29:BD:02:CA inet addr:192.168.0.112 Bcast:192.168.0.255 Mask:255.255.255.0 inet6 addr: fe80::20c:29ff:febd:2ca/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:9661564 errors:1 dropped:1 overruns:0 frame:0 TX packets:54986 errors:0 dropped:0 overruns:0 carr...

by sbyond - Shell - 2006-03-29 10:38:15 阅读(1332) 回复(3)

--------------------------------------------------------------- 139.175.55.238 inetnum: 139.175.0.0 - 139.175.255.255 netname: SEED-NET descr: imported inetnum object for III-3 country: TW remarks: inetnum: 139.175.0.0 - 139.175.255.255 remarks: netname: SEED-NET country: TW remarks: country: TW -------------------------------------------------...

by vam - Shell - 2005-02-22 11:04:38 阅读(1597) 回复(14)

原文件: 131.039.000.000|131.043.255.255 144.092.000.000|144.092.255.255 150.204.000.000|150.204.255.255 151.000.000.000|151.003.255.255 160.000.000.000|163.255.255.255 想得到以下结果: 130.039 130.040 130.041 130.042 130.043 144.092 150.204 151.001 151.002 151.003 160 161 163 主要是把ip址址展开 [ 本帖最后由 chenwenming 于 2008-11-10 22:46 编辑 ]

by chenwenming - Shell - 2010-05-18 23:18:55 阅读(2511) 回复(9)

如何使用数组统计下述ip出现的次数。 下面的ip在 1.txt 中 116.18.8.4 116.18.8.4 116.18.8.4 116.18.8.4 116.18.8.4 116.18.8.4 116.18.8.4 116.18.8.4 116.18.8.4 116.18.8.4 116.209.158.186 116.209.158.186 116.209.158.186 116.209.158.186 116.209.158.186 116.209.158.186 116.209.158.186 116.21.160.186 116.21.160.186 116.21.160.186 116.21.160.186 116.21.160.186 116.2.116.21 116.2.116.21 116.2.116.21 116.2.1...

by smz_f91 - Shell - 2007-10-23 20:16:00 阅读(3396) 回复(2)
by lxc521 - 系统管理 - 2006-04-19 20:01:34 阅读(834) 回复(6)

例如: abc.com 192.168.0.1 des.com 192.168.0.1 sdfe.net sesd.com dfefs.com 192.168.0.1 每个域名下面的一行都是一个ip,如何将域名下面没有ip的这些域名取出来。

by cuci - Shell - 2005-03-14 15:21:45 阅读(1100) 回复(9)

有如下文件: #cat file 11:18:26.510152 ip 192.168.5.243.3287 > 192.168.0.192.80: . ack 1 win 32768 11:18:26.510580 ip 192.168.5.243.3287 > 192.168.0.192.80: P 1:822(821) ack 1 win 32768 11:18:26.520392 ip 192.168.0.192.80 > 192.168.5.243.3287: . ack 822 win 59 现在要打印出ip地址后面的port,3287和80,请问awk如何匹配ip格式呢?

by firmlyjin - Shell - 2013-12-13 17:05:54 阅读(7163) 回复(16)