modified shell script to process all existing data files