Linux实战 / find

Linux实战 / find

find . -name "pom.xml" |xargs sed -i 's/source/target/g'

将当前目录及其子孙目录中所有pom.xml文件中的”source”字符串替换为”target”

猜你喜欢

转载自blog.csdn.net/qwfys200/article/details/80226969