标签: bash
如何使用bash脚本从Qash中提取Qt版本 qmake -v?
qmake -v
[newton@plex .home] qmake -v Qmake version: 1.07a (Qt 3.3.6) Qmake is free software from Trolltech AS. [newton@plex .home]
答案 0 :(得分:2)
qmake -v | grep -m1 -o -P "\(Qt [^\)]+" | cut -d" " -f2