1
neilp 2015-08-24 20:08:09 +08:00
sed -i 's/^ARGS=\(.*\)114.114.114.114\(.*\)$/ARGS=\15.5.5.5\2/' a.txt
|
2
neilp 2015-08-24 20:10:12 +08:00
用这个:
sed "s/^ARGS=\(.*\)114.114.114.114\(.*\)$/ARGS=\1$DNS\2/" a.txt |
3
qq674949301 OP @neilp thanks
|