I have a big file with database content, so that variables containing binary fields are displayed in a "readable" hex-form:
01E4
VAR1 = '069B'
VAR1234 = 'G'
XYZ = '0674'
*PADDING = ' '
0E
VAR2345 = '37'
VAR1 = '069B'
VAR1234 = 'G'
XYZ = '0674'
*PADDING = ' '
0E
VAR2345 = '37'
Is it possible to manipulate this output with sort to get the 2 lines containing the hex-code in 1 line in decimal?
In the above example:
VAR1 is '0016E94B'h, so it should be printed out as 1501515 (decimal)
VAR2345 is '03E7'h, so it should be printed out as 999 (decimal)
OR
Is it possible to get/keep the the content of the previous sort line?
frank