This script is to move files from a temporary folder(tmpdir) to appropriate folders in (basedir) based on regexes found in (input) file.