I have a CSV file like this:
"Player","VPIP"
"$GIU$37","21.01"
"$VaSko$.017","14.11"
"*Lampiaao*","16.15"
"111bellbird","30.30"
"1221Vik1221","21.97"
"16266+626","20.83"
"17victor","16.09"
"1980locky","11.49"
"19dem","22.81"
"1lllllllllll","20.99"
......
and I would like to print lines like the following in (g)AWK, into an output file with extracting informations from between the quotes:
<note player="player ID comes here" label="a number between 0-7 based on the number belong to the player's VPIP value" update="this one is irrelevant, one nuber can be used for all the lines"></note>
So a printed line would look like this:
<note player="17victor" label="2" update="1435260533"></note>
Obviously, I'd like to ignore the first line of the CSV file when reading it because it contains only the header data. The label number criteria is:
0: VPIP > 37.5
1: VPIP < 10
2: VPIP between 10 - 16.5
7: The rest.
Any idea about how it can be done?