grep (Global search Regular Expression and Print out the line)
grep “ntfs” xxx.txt 显示xxx.txt包括ntfs行
grep -n “ntfs” xxx.txt 显示xxx.txt包括ntfs行,行数
grep -v “ntfs” xxx.txt 显示xxx.txt不包括ntfs行
grep “^ntfs” xxx.txt 显示xxx.txt包括以ntfs开头行
grep “ntfs$” xxx.txt 显示xxx.txt包括以ntfs结尾行