Here's my input:
....
....
TradeDetailsDTO [ShortName=ABCD, allocated=600], TradeDetailsDTO [ShortName=EFGH, allocated=400], TradeDetailsDTO [ShortName=IJKL, allocated=300], TradeDetailsDTO [ShortName=MNOP, allocated=700]
....
....
Based on the text above, I am trying to get my output to be displayed in a table like below:
ShortName allocated
ABCD 600
EFGH 400
IJKL 300
MNOP 700
I tried using stats or the foreach commands but neither of them are able to pick up all the four items list in the table above. Note that this list is variable and it may not be 4 items all the time. Please advise.
... View more