linux下查找任意普通文件中的指定内容

find / -type f -name "*.properties" | xargs grep "tps_user"

*.properties是指定文件名

tps_user是指定内容

(备忘)

猜你喜欢

转载自xiaoyanzi1205.iteye.com/blog/1579539