过滤多个字段 cat httpd-vhost.conf |egrep 'ServerName|ServerAlias' |awk '{print $2}' 转载于:https://blog.51cto.com/3404903/971429