我期望这个命令打印一些包含“routed by”字符串的行:
root@localhost:~# exim -bt -d [email protected] | grep "routed by"
但它列出了完整的命令输出。哪个命令会执行我所排除的操作?操作系统是 Debian Jessie。exim -bt -d [email protected]
答案1
输出将发送到 stderr,因此将其重定向:
$ exim -bt -d [email protected] 2>&1|grep routed\ by
routed by amavis router