删除一行
sed -i '/CONFIG_SERIAL_MSM=y/d' ../src/kernel/msm-5.4/arch/arm/configs/vendor/test.config
增加一行
sed -i '$aCONFIG_SERIAL_MSM=y' ../src/kernel/msm-5.4/arch/arm/configs/vendor/test.config
标签:src,5.4,..,kernel,语法,sed,arch From: https://www.cnblogs.com/zxc2man/p/18196164