ChinaUnix.net
相关文章推荐:

awk 取最大值

236K log 3.3G log.2009-07-07 3.2G log.2009-07-08 632K log.2009-07-09 632K log.2009-07-10 632K log.2009-07-11 632K log.2009-07-12 632K log.2009-07-13 3.5G log.2009-07-14 5.1G log.2009-07-15 5.5G log.2009-07-16 2.4G log.2009-07-17 2.4G log.2009-07-18 2.4G log.2009-07-19 4.7G log.2009-07-20 5.5G log.2009-07-21 5.0G log.2009-07-22 5.3G log.2009-07-...

by MYSQLER - Shell - 2009-09-01 17:45:35 阅读(4804) 回复(14)

相关讨论

Symbol,Date,Open,High,Low,Close,Volume,OpenInt AAB,27-Jun-2008,0.66,0.68,0.63,0.66,95700 AAB.WT,27-Jun-2008,0.18,0.18,0.18,0.18,28000 AAH,27-Jun-2008,22.84,23.32,22.17,23.15,80019 AB,27-Jun-2008,5,5,5,5,100 ABG,27-Jun-2008,2.43,2.45,2.41,2.42,6600 ABH,27-Jun-2008,9.96,10,9.41,9.6,43829 ABO.A,27-Jun-2008,25.2,26.99,25.2,26.99,800 ABO.B,27-Jun-2008,26.03,27,26.03,27,620 ABT,27-Jun-2008,10.3,10.49,10...

by packet_killer - Shell - 2008-07-28 13:54:07 阅读(5426) 回复(21)

文本内容模板如下: 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)

有三个TXT文件,文件名都是20090308.txt,里面的内容都是 200903081520:10 200903081530:13 200903081540:21 200903081550:18 200903081600:19 200903081610:43 200903081620:435 200903081630:345 还有其他时间和值 现在想求这三个文件中$1相同的$2的和,最后求和的最大值,用awk咋个实现法?

by txjking - Shell - 2009-03-11 14:07:45 阅读(3064) 回复(15)

我使用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 阅读(5836) 回复(30)

我想用awk某个html页中的432432中的xxxxx部分,请教该怎么? [ 本帖最后由 chzht001 于 2008-2-21 14:17 编辑 ]

by chzht001 - Shell - 2008-02-22 12:06:33 阅读(2367) 回复(7)

version=$(swlist | grep -v "^#" | awk '{print substr($1,5)}') 我想awk结果的倒数第二行的值,怎么写呢?

by dutysmart - Shell - 2009-07-31 01:49:05 阅读(1721) 回复(3)

如何从1000W行里随机抽10W行数据?

by star_wm_craft - Shell - 2009-07-25 00:17:31 阅读(6429) 回复(6)

60.14.222.143 - - [23/Feb/2009:18:00:24 +0800] "GET HTTP/1.1" 304 284 "http://www xxx.com.cn/66/1523.html" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)" TCP_IMS_HIT:NONE 用awk或sed,如何红色字体部分。

by hiller1 - Shell - 2011-06-05 17:45:31 阅读(4673) 回复(11)

/usr/local/apache/htdocs/local/www.abc.com/abc/20090107/93565.html /usr/local/apache/htdocs/kehu/www.kehu.cn/103/12933.html awk -F“/usr/local/apache/htdocs/local/,/usr/local/apache/htdocs/kehu/” 这两个为分各界 最终想要得到的结果是: http://www.abc.com/abc/20090107/93565.html http://www.kehu.cn/103/12933.html 谢谢!

by hiller1 - Shell - 2009-01-07 20:37:24 阅读(2292) 回复(11)

last 命令产生如下结果: root ftp 192.168.169.211 Fri Dec 7 13:52 - 14:07 (00:15) root ftp 192.168.169.242 Fri Dec 7 13:43 - 13:54 (00:10) root ftp 192.168.169.211 Fri Dec 7 13:40 - 13:52 (00:11) root pts/2 192.168.169.211 Fri Dec 7 12:48 仍在登录状态 root pts/2 192.168.169.237 Fri Dec 7 10:56 - 11:06 (00:09) root pts/2...

by everester - Shell - 2007-12-07 16:41:42 阅读(2296) 回复(8)