printf "%s\n" `nginx -V 2>&1`
nginx -V 2>&1 | sed ‘s/ /\n/g‘
Nginx 编译数格式化输出
原文:https://www.cnblogs.com/zhangmingda/p/12622083.html