I want to print version of e.g. Packer in cmd. This works with packer --version
. Unfortunately this prints the version number only - but not the name of the tool. This is the case with some other tools (e.g. VirtualBox, etc.), too.
C:\_TEMP
λ packer --version
0.10.1
λ vboxmanage --version
5.1.4r110228
So my idea was to do somethink like echo Packer & packer --version
but this prints in two lines:
C:\_TEMP
λ echo Packer & packer --version
Packer
0.10.1
Now, how can I print Name + version number in one line? So that the result looks like:
Packer 0.10.1
Virtualbox 5.1.4r110228