Changeset 8487
- Timestamp:
- 05/10/07 15:01:22 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/scripts/merppupdate
r8486 r8487 39 39 outpath= 40 40 41 calfiles=`find $outpath -name 20_*_Y_*_E.root` 41 #regular expression for the filename 42 name="20*_Y_*E.root" 43 44 if ! [ "$1" = "" ] 45 then 46 outpath=$1 47 if ! [ "$2" = "" ] 48 then 49 name=$2 50 if ! [ "$3" = "" ] 51 then 52 echo "You gave too many arguments." 53 exit 54 fi 55 fi 56 fi 57 58 if [ "$outpath" = "" ] 59 then 60 echo "You have to give an outpath." 61 exit 62 fi 63 64 if ! ls $outpath 65 then 66 echo "Your outpath is not valid." 67 exit 68 fi 69 70 71 calfiles=`find $outpath -name '$name'` 42 72 43 73 echo "calfiles: "$calfiles
Note:
See TracChangeset
for help on using the changeset viewer.