我有几个大约 10,000 个文件的目录。如果第二行包含特定字符串,搜索每个文件并返回文件名的最快方法是什么?
为清晰起见进行了编辑
grep sed find awk
awk ×1
find ×1
grep ×1
sed ×1