I want to give integer input to Ruby like this:
12 343 12312 12312 123123 231
12 343 12312 12312 123123 243
12 343 12312 12312 123123 2123
This whole thing should be taken as a number so that I can sort all of them and if there is any repeating numbers I want to print them. The whole line should be treated as an integer for comparison with the other lines. I am not able to take the input into one integer, for each of those lines it gives me 12. How can I accomplish this?