I'm trying to do a diff on two files which works, however some of the strings our out of sync in the output file. Any ideas ?
FILE 1
231 0 1 1 9144 11 113434 545 193
231 0 2 2 1377 0 1392 16 6
231 0 7 1 51 0 338 290 142
231 0 7 2 1433 0 1469 32 12
FILE 2
231 0 1 1 9145 11 113435 545 193
231 0 2 2 1394 0 1409 16 6
231 0 7 1 52 0 339 290 142
231 0 7 2 1441 0 1479 32 12
OUTPUT FILE
231 0 1 1 9144 11 113434 545 193
231 0 1 1 9145 11 113435 545 193
231 0 2 2 1377 0 1392 16 6
231 0 2 2 1394 0 1409 16 6
231 0 7 1 51 0 338 290 142
231 0 7 2 1433 0 1469 32 12
231 0 7 1 52 0 339 290 142
231 0 7 2 1441 0 1479 32 12
Might be hard to see, but the output file has some of the lines out of order. Look at lines 5,6,7,8.
I want it to look like this.
231 0 1 1 9144 11 113434 545 193
231 0 1 1 9145 11 113435 545 193
231 0 2 2 1377 0 1392 16 6
231 0 2 2 1394 0 1409 16 6
231 0 7 1 51 0 338 290 142
231 0 7 1 52 0 339 290 142
231 0 7 2 1433 0 1469 32 12
231 0 7 2 1441 0 1479 32 12
Does anyone know why it would be doing that, and how to correct it ?
Please Help
FILE 1
231 0 1 1 9144 11 113434 545 193
231 0 2 2 1377 0 1392 16 6
231 0 7 1 51 0 338 290 142
231 0 7 2 1433 0 1469 32 12
FILE 2
231 0 1 1 9145 11 113435 545 193
231 0 2 2 1394 0 1409 16 6
231 0 7 1 52 0 339 290 142
231 0 7 2 1441 0 1479 32 12
OUTPUT FILE
231 0 1 1 9144 11 113434 545 193
231 0 1 1 9145 11 113435 545 193
231 0 2 2 1377 0 1392 16 6
231 0 2 2 1394 0 1409 16 6
231 0 7 1 51 0 338 290 142
231 0 7 2 1433 0 1469 32 12
231 0 7 1 52 0 339 290 142
231 0 7 2 1441 0 1479 32 12
Might be hard to see, but the output file has some of the lines out of order. Look at lines 5,6,7,8.
I want it to look like this.
231 0 1 1 9144 11 113434 545 193
231 0 1 1 9145 11 113435 545 193
231 0 2 2 1377 0 1392 16 6
231 0 2 2 1394 0 1409 16 6
231 0 7 1 51 0 338 290 142
231 0 7 1 52 0 339 290 142
231 0 7 2 1433 0 1469 32 12
231 0 7 2 1441 0 1479 32 12
Does anyone know why it would be doing that, and how to correct it ?
Please Help