LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 712|回复: 3

how to grep a pattern in multiline?

[复制链接]
发表于 2004-9-13 17:35:13 | 显示全部楼层 |阅读模式
i need to grep the pattern
ab
cd
any help is appreciated.
发表于 2004-9-13 17:50:50 | 显示全部楼层
  1. grep -E 'ab|cd' file
复制代码
 楼主| 发表于 2004-9-18 16:58:50 | 显示全部楼层
but i need the two line continue.
发表于 2004-9-18 17:06:30 | 显示全部楼层
最初由 lonewalker 发表
but i need the two line continue.

speak chinese,please!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表