sed 命令斜杠替换

sed -i "s/\/statics\/images\//&statics\/images/g" `grep statics/images// -rl /test`

把test目录下/statics/images// 替换成 /statics/images/



sed -i 's/\/opt\/RTU\/data\/etc/\/mnt\/mtd/g' `grep /opt/RTU/data/etc . -rl`


把/opt/RTU/data/etc路径 替换成 /mnt\/mtd/ 路径




你可能感兴趣的:(images)