1.查找当前目录下所有以txt文件中包含123的数字都替换成5678 find ./ -name "*.txt" -exec grep "123" {} \; -exec sed -i 's/123/5678/g' {} \; 相关文章: 2021-09-13 2022-02-18 2021-11-18 2022-12-23 2022-12-23 2021-06-05 2021-08-29 2021-04-14