Hi,
I have two datasets..
main_data.txt
{id:foo, some_field:12354, score:0}
{id:foobar, some_field:12354, score:0}
score_data.txt
{id:foo, score:1}
{id:foobar,score:20}
So in main_data.. score is initialized to 0..
Also.. main_data and score_data have some ids in common..
For the ids
If I understood your question correctly, given the following input:
main_data.txt
{id: foo, some_field: 12354, score: 0}
{id: foobar, some_field: 12354, score: 0}
{id: baz, some_field: 12345, score: 0}
score_data.txt
{id: foo, score: 1}
{id: foobar, score: 20}
you want the following output