#!/bin/sh usage () { echo "Usage: $(basename $0) T1" echo "" exit } if [ -z "$1" ] then echo "T1 not specified. Aborting" usage fi t1_name=$1 echo "Starting removing old LoadTest files (PID=$$)..." for i in 0 1 2 3 4 5 6 7 8 9 do if [ $i -eq 0 ] then i='' fi for j in 0 1 2 3 4 5 6 7 8 9 do dir_name="/dpm/lal.in2p3.fr/home/cms/trivcat/store/PhEDEx_LoadTest07/LoadTest07_Debug_${t1_name}/GRIF_LAL/$i$j" echo "$(date) - Removing $dir_name..." rfrm -rf $dir_name done done echo "Completed removing old LoadTest files..."