Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-10-16 08:23:42

0001 #!/bin/bash
0002 
0003 flist=$1
0004 runlimit=0      # must have at least this many files in run
0005 
0006 #sed 's/^.*0000//' $flist | sed 's/-.*$//' | sort | uniq > runs.list
0007 
0008 awk -F - '{print $2}' $flist | sed 's/^00*//' | sort | uniq > runs.list
0009 
0010 for run in `cat runs.list`
0011 do
0012   #grep "0000$run" $flist | sort -t/ -k 5  > ${run}.list
0013   grep "00$run" $flist | sort > ${run}.list
0014   files=`wc -l ${run}.list | awk '{print $1}'`
0015 
0016   if [ $files -lt $runlimit ]
0017   then
0018     rm ${run}.list
0019   fi
0020 
0021 done