sed 在關鍵字先後插入

一、在有 123123 行上面插入 AAAA 的新行ide

sed -i '/123123/i\\AAAA' a

二、在有 123123 行下面插入 AAAA 的新行code

sed -i '/123123/a\\BBBB' a
相關文章
相關標籤/搜索