Hey PHV,
merci beaucoup for your help, i've tested it on the original file, but WOW it's still running for the last 30 minutes !
so i've gave it a try on the sample data file, it didn't work, it only have one line in the output.
here's the script that i've used...