sed指定替换范围
sed -i '21,30s/127.0.0.1:8433/192.168.212.43:8433/g' cfg.json
去掉最后一个字符
tran_nodelist=$(echo $tran_replace|sed 's/.$//')
sed指定替换范围
sed -i '21,30s/127.0.0.1:8433/192.168.212.43:8433/g' cfg.json
去掉最后一个字符
tran_nodelist=$(echo $tran_replace|sed 's/.$//')