grep命令应用举例 查询多个文件,可以使用通配符“*” grep "math2"*.txt grep "12"* ◆反向匹配 ps aux I grep "ssh" grep -v "grep" ◆ 匹配空行 grep -n datafile grep -v datafile datafile26 grep 命令应用举例 查询多个文件,可以使用通配符 “ * ” grep "math2" *.txt grep "12" * 反向匹配 ps aux | grep "ssh" | grep –v "grep" 匹配空行 grep -n '^$' datafile grep -v '^$' datafile > datafile2