#!/bin/csh -f # # myprog9 - script to backup multiple files # if ($#argv < 1) then echo -n "What do you want to copy " set tocopy = $< set tocopy = ($tocopy) else set tocopy = ($argv) endif set when = `date` foreach fyle($tocopy) cp $fyle ~/logback set stats = `wc $fyle` echo "$when copied $stats[4] size $stats[3] bytes" end