在makefile 含有 default 行,将libtommath.a 替换为 libtommath.a libtommath.so
sed -i '/default/s/libtommath.a/libtommath.a libtommath.so/' makefile
在makefile第49行添加 DLIBNAME=libtommath.so:
sed -i '49i DLIBNAME=libtommath.so' makefile
#
在 welcom 后插入 tail
sed -i '/welcom/a\tail' hello.txt
在 welcom 前插入 head
sed -i '/welcom/i\head' hello.txt
sed 命令
最新推荐文章于 2022-09-16 01:17:06 发布