I guess the crux of what I'm asking is, is there a way to specify which in a list of files your "pointer" points to?
So, when you have a variable that looks like FILELIST="$file1A $file1B...", how can you pull, say, the third variable from that list, without stating the name of the variable explicitly. I'm assuming the shell somehow stores a "bookmark", so to speak, of where it currently is in that list, or else the for loop wouldn't work. How can I find and use that bookmark to compare these files, if there is a way.
I don't really understand the eval statement, but through doing some testing, it doesn't seem to behave much differently than just the for statement itself (for fname in $files).
Please excuse my ignorance. I know just enough ksh scripting to be dangerous!
