#!/bin/sh
ENABLED=yes
PROCS=pddd
ARGS="-c /opt/etc/config.json"
PREARGS=""
DESC=$PROCS PATH=/opt/sbin:/opt/bin:/opt/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
想把该脚本中ARGS="-c /opt/etc/config.json"
替换成ARGS="-c /opt/etc/config_1.json"
请各位帮帮忙,写了几个 sed 命令都无法替换成功!在线等!
1
darkshell 2015-12-20 19:28:32 +08:00
|
2
qq674949301 OP @darkshell 无效!直接变成 ARGS=" "!
|
3
qq674949301 OP @darkshell sed -e 's/ARGS="-c \/opt\/etc\/config.json"/ARGS="-c \/opt\/etc\/config_1.json"/g' /mnt/sda3/S22shadowsocks
这样就可以了,谢谢你的指导! |
4
darkshell 2015-12-20 20:08:16 +08:00
@qq674949301 哦哦哦.. 那就好.
|