#!/bin/tcsh set num = $argv[1] if ( $num == "" ) then echo "must specify draft number as first argument" exit 1 endif foreach i ( draft-ietf-httpbis-method-registrations ) cp -p $i.redxml $i-$num.xml cp -p $i.txt $i-$num.txt end