今天有个实操,就是config_0,config_1,config_2,config_3四个文件均要修改log路径
sed -i ‘/logpath/d‘ congfig_* echo "logpath xxxxxxx" > log_patch sed -i ‘/debug/r log_patch‘ config_*
完成
成就感 sed -i哈哈哈哈
原文:https://www.cnblogs.com/toughcactus/p/14767838.html