Morning people.

I am currently writing a shell script to take 2 sets of 10 files from 2 different system enviroments and run a diff on them to make sure that they are the same and that there are not data inconsistancies between the two.

I need to be able to pass two arguments to the diff command but am unsure how i can automate this process in a loop, that runs through each file in two seperate directories in turn.

I thouhg a good way is to create a ls -1 list of the files in each directory, and pass the file list into a loop, this works for one set of files but how can i do it so i can pass both arguments into the loop?

I hope this is clear..if not i can provide more information.

I thank anyone in advance who can guide me to the right direction.