sed处理多行技巧的应用

sed -i -e  '
#找到有下面这段字的行
/在这段时间内被修正或解决的bug/ {
#读入下面一行
N
#如果下面一行以</ul>开头
/\n<\/ul>/ {
#就替换一下
s/在这段时间内被修正或解决的bug/bug在这段时间被标记为重复/
}
}' *

Comments

Popular posts from this blog

Ripple's XRP: Giving the Third-Largest Cryptocurrency a Second Look

Illinois Is Venezuela and the Solution Is Cryptocurrency