• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
 






会飞の鱼

 
 

Powered by 博客园
博客园 | 首页 | 新随笔 | 联系 | 订阅 订阅 | 管理

2018年1月19日

diff
摘要: cp /etc/passwd passwd_old cat /etc/passwd| sed -e '4d' -e '6c no six line' > passwd_new [root@mhc regular]# diff passwd_old passwd_new 4d3< adm:x:3:4: 阅读全文
posted @ 2018-01-19 19:59 会飞の鱼 阅读(292) 评论(0) 推荐(0)
 
awk
摘要: [root@mhc regular]# last -n 2|awk '{print $1 "\t" $3}'root :0root :0 wtmp Wed [root@mhc regular]# last -n 2|awk '{print $1 "\tlines:" NR "\t columes:" 阅读全文
posted @ 2018-01-19 19:25 会飞の鱼 阅读(128) 评论(0) 推荐(0)
 
sed
摘要: 删除: [root@mhc regular]# sed '2,5d' num.txt 1678[root@mhc regular]# sed '5d' num.txt 1234678[root@mhc regular]# sed '5,$d' num.txt 1234新增: [root@mhc re 阅读全文
posted @ 2018-01-19 17:54 会飞の鱼 阅读(107) 评论(0) 推荐(0)
 
grep
摘要: [root@mhc regular]# cat a.txt|grep gooooooglegoooooogle yes![root@mhc regular]# [root@mhc regular]# [root@mhc regular]# cat a.txt|grep -A2 goooooogleg 阅读全文
posted @ 2018-01-19 17:43 会飞の鱼 阅读(143) 评论(0) 推荐(0)
 
scrapy
摘要: 目前,为了加速页面的加载速度,页面的很多部分都是用JS生成的,而对于用scrapy爬虫来说就是一个很大的问题,因为scrapy没有JS engine,所以爬取的都是静态页面,对于JS生成的动态页面都无法获得。 解决方案: 利用第三方中间件来提供JS渲染服务: scrapy-splash 等。 利用w 阅读全文
posted @ 2018-01-19 16:57 会飞の鱼 阅读(629) 评论(0) 推荐(0)