(imported topic written by SystemAdmin)
For example:
I have a file containing the following , delminited data
I want to apply firmware updates if the commpared values of these 4 are out of date.
Current values of the 4 levels my type are contained in the file.
Once they are extracted, I would like to assign them to a variable and use that value in if $BIOS=1.19
cbcbc004mm,14,UXPRF161,HS21,8,16241,00:1A:64:4F:5A:38,00:1A:64:4F:5A:3A, , ,99W5135,BIOS,BuildID,BCE143AUS,RelDate,12/09/2009,Rev,1.19,DIAG,BuildID,BCYT28AUS,RelDate,03/07/2008,Rev,1.06,SYSMGMT,BuildID,BCBT60A,RelDate,Not Available,Rev,1.20,cKVM,Rev,1.4.11.43
I need to extract all 4 values following each Rev
BIOS: 1.19
DIAG: 1.06
SYSMGMT: 1.20
cKVM: 1.4.11.43
So, in summary I want to extract the versions and compare to a static value, if not match, run commands to upgrade. So need to 1) extract a value, )2 puth that value in a $Variable to do if, command endif