sed -i '11,12d;5,6d' test
sed -i '/<tr>/{N;/colspan/{i\</table>
i\<table>
}}' test
sed -i '/<tr>/{N;/aaa/{i\ <th>
s/aaa//
D}}' test
sed -i '/bbb/{s/bbb//;n;c\ </th>
}' test
sed替换
最新推荐文章于 2023-10-10 23:30:50 发布
sed -i '11,12d;5,6d' test
sed -i '/<tr>/{N;/colspan/{i\</table>
i\<table>
}}' test
sed -i '/<tr>/{N;/aaa/{i\ <th>
s/aaa//
D}}' test
sed -i '/bbb/{s/bbb//;n;c\ </th>
}' test