sed处理多行技巧的应用

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

Comments

Popular posts from this blog

The diff between the original SEC complaint against Ripple and the amended one

Rippled thread cpu usage

Send $SGB (Songbird) to another wallet using a script