g r e p命令加- E参数,这一扩展允许使用扩展模式匹配。 例如,要抽取城市代码为2 1 9或2 1 6 grep -E '219|216' file 例如,抽取包含aa与bb的数据 grep -E 'aa.*bb' file