linux 查找文件及在指定文件中查找内容

在当前目录查找指定后缀文件

find ./ -name *.properties

在文件列表中查找,包含指定内容的文件

find ./ -name *.properties | xargs grep product

猜你喜欢

转载自medicine.iteye.com/blog/1679718