会员
周边
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
zhaocundang's blog(Bobyzhao)
博客园
首页
新随笔
联系
管理
2018年1月16日
正则表达式sed
摘要: sed 能实现grep查找的功能,还可以替换指定的字符。 匹配查找文件中root字符(其中的 -n表示段落,p表示打印出来print) [root@localhost sed]# sed -n '/root/'p test.txt root:x:0:0:root:/root:/bin/bash op
阅读全文
posted @ 2018-01-16 22:27 zhaocundang
阅读(490)
评论(0)
推荐(0)
编辑
公告