当我使用grep查找我需要的文本时,它将显示包含与给定模式匹配的行。# grep -r ".*Linux" *path1/output1.txt:Welcome to Linux.
path2/output2.txt:I hope you will have fun with Linux.然后,我想编辑文件path2
security updates, features and services will
# appear here to raise awareness and perhaps tease /r/Linux-5.15.0-58 linux-headers-5.15.0-58-generic linux-image-5.15.0-58-generic linux-modules-5.15.0-58-genericsoftware-properties-common software-properties