#!/bin/csh -f # # myprog8 - script to backup a multiple files # prompts for file names if not given as parameters # if ($#argv < 1) then echo -n "What do you want to copy " set tocopy = $< set tocopy = ($tocopy) else set tocopy = ($argv) endif cp $tocopy ~/logback set when = `date` echo "" echo " backup copy log" echo "backed up $when[6] $when[2] $when[3] $when[4]" echo "file count $#tocopy" echo "file names $tocopy" echo ""