HYDRA_development_version
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
missingFiles.sh
Go to the documentation of this file.
1 
2 
3 
4 dstdir=/hera/hades/dstsim/apr12/gen8a/
5 mask="Au_Au_1230MeV_1000evts_[0-9]*_"
6 if [ $# -ge 1 ]
7 then
8  list=$1
9 
10  if [ $# -eq 2 ]
11  then
12  dstdir=$2
13  fi
14 
15  if [ $# -eq 3 ]
16  then
17  mask=$3
18  fi
19 
20 
21 # perl /misc/kempter/scripts/perl/matchFiles.pl -f $list -s "${dstdir}/*.root" -m no -p "${mask}" -o first
22  find ${dstdir}/ -maxdepth 1 -name "*.root" > tmp.list
23 
24  perl /misc/kempter/scripts/perl/matchFiles.pl -f $list -s tmp.list -m no -p "${mask}" -o first
25 
26 else
27  echo "usage: . ./missingfiles.sh list [dstdir] [mask]"
28  echo "Default dstdir : $dstdir"
29  echo "Default mask : \"$mask\""
30 fi
31