Linux-常用-Shell

sed命令# 匹配替换第N个内容:sed ":a;N;\$!ba;s/aaa/bbb/2" file # 匹配替换第二个aaa为bbb