sed查看指定行数

[root@wanggaoli nginx]# sed -n “10,15p” access.log #查看 10-15 行内容
119.2.9.132 - - [08/Aug/2016:15:31:12 +0800] “GET /?paged=3 HTTP/1.1” 200 11726 “https://wgli.vip/?paged=2“ “Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 UBrowser/5.7.14377.31 Safari/537.36” “-“
119.2.9.132 - - [08/Aug/2016:15:31:13 +0800] “GET /wp-content/themes/9iphp/inc/fancy/jquery.fancybox.css?ver=2.1.5 HTTP/1.1” 404 564 “https://wgli.vip/?paged=3“ “Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 UBrowser/5.7.14377.31 Safari/537.36” “-“
119.2.9.132 - - [08/Aug/2016:15:31:13 +0800] “GET /wp-content/themes/9iphp/inc/fancy/jquery.fancybox.js?ver=2.1.5 HTTP/1.1” 404 564 “https://wgli.vip/?paged=3“ “Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 UBrowser/5.7.14377.31 Safari/537.36” “-“
119.2.9.132 - - [08/Aug/2016:15:31:13 +0800] “GET /wp-content/themes/9iphp/images/bg-full.jpg HTTP/1.1” 301 178 “-“ “Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 UBrowser/5.7.14377.31 Safari/537.36” “-“
119.2.9.132 - - [08/Aug/2016:15:31:16 +0800] “GET /?paged=4 HTTP/1.1” 200 9305 “https://wgli.vip/?paged=3“ “Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 UBrowser/5.7.14377.31 Safari/537.36” “-“
119.2.9.132 - - [08/Aug/2016:15:31:16 +0800] “GET /wp-content/themes/9iphp/images/bg-full.jpg HTTP/1.1” 301 178 “-“ “Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 UBrowser/5.7.14377.31 Safari/537.36” “-“

 

版权声明:
作者:WangGaoli
链接:https://wanggaoli.com/2880.html
来源:王高利的个人博客
文章版权归作者所有,未经允许请勿转载。

THE END
分享
二维码
< <上一篇
下一篇>>