Awk scripts
3 answers
Well, I'm not going to write and debug the code for you. However, the required items are:
- You can use
FS=","
to change field separator to comma. - The fields you care about are obviously the second (
$2
) and third ($3
) fields. - You can create your own variables to accumulate values.
- I would suggest an associative array variable indexed by field 2.
+1
a source to share