sed 多行条件匹配修改

cat test111222333 111222333 111333 111222 需要将 111 222 333 替换成 444 555 666 使用sed命令 sed -n '1h;1!H;${g;s/111.222.333/444\n555\n666/g;p}' test444555666 4
posted @ 2023-05-06 14:37  瘦阿瘦  阅读(948)  评论(0编辑  收藏  举报