更新时间:2023-09-11 21:31:16
find "dir" -type f -name package.json -print |
xargs sed -i 's/"version": "0.1"/"version": "0.0.1"/'
应该按照您的描述进行.将"dir"替换为您真正的起始目录,然后首先进行测试.
should do what you describe. Replace "dir" with whatever your real starting directory is and test it first of course.