- 论坛徽章:
- 0
|
为了做Zabbix的升级脚本,想做版本判断
现有的版本输出为
Zabbix get v2.2.10 (revision 54806) (10 August 2015)
Compilation time: Oct 13 2015 19:24:25
新版本的为
zabbix_get (Zabbix) 3.0.9
Revision 67444 19 April 2017, compilation time: Jun 18 2017 18:58:18
Copyright (C) 2017 Zabbix SIA
License GPLv2+: GNU GPL version 2 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it according to
the license. There is NO WARRANTY, to the extent permitted by law.
请问如何过滤出2.2.10 和3.0.9呢
先在这里感谢
|
|