Linux下一键查找/替换
查找
grep -iRl 'your-text'
替换
find /your/path \( -type d -name .git -prune \) -o -type f -print0 | xargs -0 sed -i 's/old-string/new-string/g'
还能自动贴心地跳过.git
目录
查找
grep -iRl 'your-text'
替换
find /your/path \( -type d -name .git -prune \) -o -type f -print0 | xargs -0 sed -i 's/old-string/new-string/g'
还能自动贴心地跳过.git
目录