score_unfixed_model.bash 339 Bytes
cpt=0
for file in $1/*.bak
    do
    fname=$(basename $file ".shelve.bak")
    if [ -f UNFIXED_TRANS_scores/$fname.shelve.bak ]
    then
        python UNFIXED_TRANS_MINIAE_mlp.py UNFIXED_TRANS_MODEL/$fname UNFIXED_TRANS_scores/$fname & 
        cpt=$(($cpt+1))
    fi
    if [ $cpt -eq 4]
    then
        wait
        cpt=0
    fi
done