I am having a script output data that needs to be formatted, I have a output like below.
UNIT : ABC
xxxx
xxxx
Free memory : xxx 70
UNIT : DEF
xxxx
xxxx
Free memory : xxx 60
I need to capture free memory data for individual units but I am unable to print that out, any suggestions ? There are some 25 units & I have to print free memories of all of them individually.
Here "xxxxx" is some random data which is irrelevant for me, what I want is to print free memory for each unit, something like below format :slight_smile
ABC 70
DEF 60
and so on.
awk.