#!/bin/csh if ($#argv != 2) then echo Usage: cp_list INPUT_LIST OUTPUT_DIR exit 1 endif set list_of_files=`cat $argv[1]` foreach i ($list_of_files) cp -v $i $argv[2] end