Linux 命令查找文件中某个字段所存在的位置

找到home文件夹下面的 allture

grep -R "allture" /home/*
找到deploy文件夹下的allture替换成test
sed -i "s/allture/test/g" `grep -R "allture" /home/test/up/deploy/*

猜你喜欢

转载自www.cnblogs.com/xiong-hua/p/12469154.html