#!/bin/csh -f set bigfile = $argv[1].jpg shift foreach smallfile ($*) echo "cp $bigfile cut/$smallfile.jpg" cp $bigfile cut/$smallfile.jpg end