Today, I had to find out difference between two huge lists of numbers.
Numbers are 17 digits long and list are of around 1 lac.
PS: I'm documenting both versions here for my future reference.
I used python, because diff doesn't felt good for me. because it will print both ins and outs of both files. Also, I ruled out diff's possibility, because I didn't felt it will work at that time.
Later, at home: I give diff a try.
Yes, it's not that beautiful as in python. I'd cut and sed a bit.
But still, it's a "one liner" and I like 'em a lot.
Numbers are 17 digits long and list are of around 1 lac.
PS: I'm documenting both versions here for my future reference.
I used python, because diff doesn't felt good for me. because it will print both ins and outs of both files. Also, I ruled out diff's possibility, because I didn't felt it will work at that time.
Later, at home: I give diff a try.
Yes, it's not that beautiful as in python. I'd cut and sed a bit.
But still, it's a "one liner" and I like 'em a lot.
Comments
Post a Comment