#!/bin/tcsh # I created a directory full of links in advance. I could not use * to find # all of the original directories, because that would find the test server, # which seldom has good data. It was not easy to list out all of the server # directories directly in this script because some of them had spaces in them. set all_files = "F_OvernightData.csv OvernightData.csv SC_OvernightData.csv TC_OvernightData.csv V_OvernightData.csv VB_OvernightData.csv" foreach dest ($all_files) set tempdest = "{$dest}.incoming" ../csv_merge/CsvMerge $tempdest servers/*/$dest mv $tempdest $dest end