#!/bin/tcsh foreach time (t03*) mkdir s$time break end mv t03* s$time cd s$time rename t03 03 t03* cd ..