Untitled Post - 17 Posted on 2013-11-24 Edited on 2020-12-04 In GNU/Linux 批量查找文件内的字符串,并输出结果的行号,可以这样find . -name “*.foo” xargs grep -n -s ‘bar’或者grep -n -s ‘bar’ `find . -name “*.foo”`