Wow, i didnt expect that much replies that fast. Thanks.

The task in a little bit more detail (forgive me my bad english):
Basically i have four files, filled with useraccount-details (not sorted). Two files are generated by an external Userdatabase.
Two files are generated by me and each of the two contain all members of a specified AD-group.

Each of the four files has a counterpart from the other database. So i have two "pairs".

Now i have to compare each "pair" against each other. So i take a line (an account) from one file(say: File 1) and look if its the counterpart file(say: File 2). If yes, its ok, if no i have to generate a "delta"-file which contains the username and the action "create user". So i go on. When i reach the end of file 1, i do the same with file 2: take every line and look if its in file 1 as well...

As said before, the script is finished and works well. But i would like to speed up the compare-part because the files will grow much bigger. But i would like to stick with kixtart because if i use another tool for comparison now, i fear i have to rewrite lots of my code (the whole script is about 2000 lines, because apart from the GUI, it contains a lot of functions for creating and handling the deltafiles, create and delete new AD-accounts etc.)

ok now i will check out the suggestions above in detail...

cheers, rob
_________________________
Eternity is a long time, especially towards the end. - W.Allan