怎么用,,shell里的命令修改这个配置文件里的,IP,仅仅是修改IP----.是用sed ,还是awk呢?求代码
å
¨å±æ¿æ¢
sed -i 's/ip = 211.138.250.75/ip = ä½ éè¦çIP/g' Oredsocks.conf追é®
sed -i 's/ip = 211.138.250.75/ip = ä½ éè¦çIP/g' Oredsocks.conf追é®
æå»è¯è¯ï¼å°±åæ¥
*^_^*
对äºï¼ï¼ï¼
IPå¯è½ä¸æ¯ä¸ªç¡®åçï¼éè¦ç¨è¿ä¸ªä»£ç éæ¶æ¹ï¼ï¼ï¼
追çâipâåé¢æ¯tabå¶è¡¨ç¬¦è¿æ¯ç©ºæ ¼ï¼
追é®ï¼ï¼ï¼ææ¯ç¨è¿æ¡æ¹ç
sed -i '/^ip =/s/=.*/=" "'$L1'";"/' /system/xbin/0redsocks.conf
å¯æ¯ä¸è¡
...çä¸æ¸
sed -e 's/^\ ip = 211.138.250.75
/\ ip = 1.1.1.1/g' -e 's/^\tip = 211.138.250.75
/\tip = 1.1.1.1/g' /system/xbin/0redsocks.conf
è¿ä¸ªä½ è¯è¯
æ©
è²ä¼¼ä¸è¡ï¼ï¼ï¼æ¥é
ä½ æQQå·å¤å°ï¼ï¼ï¼è¿éåæªå¾ââ½âï¼ä¸æ¸ æ°
温馨提示:答案为网友推荐,仅供参考