in reply to Re^2: Checking for new files
in thread Checking for new files

That works in bash too, and I'd use that too; but it's not as portable so I didn't write it here.

Compare Re: comparing arrays and Re: help with lists.