$grep -l "content" *.txt ---------------列出匹配的文件名 $grep -n "conten" *.txt---------------列出匹配的文件名、行号及行内容。