sed 替换带有反斜杠\内容的时候怎么写
CBEShop - cross border E-commerce shop,multiple merchant multi store online shopping system( https://www.crossborderpower.com)
sed 替换带有反斜杠\内容的时候怎么写
竟然需要三个\\\反斜杠匹配,两个匹配不到?
sed -i "s|Form\\\FormModel|FormModel\\\FormModel|g" ./src/Admin/Form.php
替换当前目录下面所谓包含查找内容的文件
sed -i "s|Form\\\FormHydrator|FormModel\\\FormHydrator|g" `grep -rl "FormHydrator" ./`
sed -i "s|Form\\\FormModel|FormModel\\\FormModel|g" `grep -rl "FormModel" ./`
sed -i "s|Form\\\Field|FormModel\\\Field|g" `grep -rl "Field" ./`
Comment
Login To Comment
No Comments