Changeset 8487


Ignore:
Timestamp:
05/10/07 15:01:22 (18 years ago)
Author:
Daniela Dorner
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/scripts/merppupdate

    r8486 r8487  
    3939outpath=
    4040
    41 calfiles=`find $outpath -name 20_*_Y_*_E.root`
     41#regular expression for the filename
     42name="20*_Y_*E.root"
     43
     44if ! [ "$1" = "" ]
     45then
     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
     56fi
     57
     58if [ "$outpath" = "" ]
     59then
     60   echo "You have to give an outpath."
     61   exit
     62fi
     63
     64if ! ls $outpath
     65then
     66   echo "Your outpath is not valid."
     67   exit
     68fi
     69   
     70
     71calfiles=`find $outpath -name '$name'`
    4272
    4373echo "calfiles: "$calfiles
Note: See TracChangeset for help on using the changeset viewer.