Link to home
Start Free TrialLog in
Avatar of NewtonianB
NewtonianB

asked on

parse qmake output from bash script

How can I extract the Qt version from a bash script using
qmake -v?

[newton@plex .home] qmake -v
Qmake version: 1.07a (Qt 2.3.6)
Qmake is free software from Trolltech AS.
[newton@plex .home]
ASKER CERTIFIED SOLUTION
Avatar of wesly_chen
wesly_chen
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of NewtonianB
NewtonianB

ASKER

Hi wesly_chen I get the exact same output, am I missing something? seems my pipe is not working
Please show me your command.
The second one I post have "blank space" -F'[ |:|(|)]' , right after [

Just copy and paste my command in to terminal. (no $)
SOLUTION
Avatar of simon3270
simon3270
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial