Mercurial > hg > cc > cirrus_home
comparison bin/preExtract.sh @ 53:396d1f17c671
ready to try another pass with robust diff checking
author | Henry S. Thompson <ht@inf.ed.ac.uk> |
---|---|
date | Mon, 13 Apr 2020 15:24:32 +0100 |
parents | 9cd9daf75183 |
children | 8154560f1e3d |
comparison
equal
deleted
inserted
replaced
52:9cd9daf75183 | 53:396d1f17c671 |
---|---|
82 echo " " checking... >> log | 82 echo " " checking... >> log |
83 cut -f 1 -d " " ${e}_diff.txt | sus > ${e}_check.txt | 83 cut -f 1 -d " " ${e}_diff.txt | sus > ${e}_check.txt |
84 ni=${#ii[@]} | 84 ni=${#ii[@]} |
85 if [ $(wc -l < ${e}_check.txt) -ne $((ni + 1)) ] | 85 if [ $(wc -l < ${e}_check.txt) -ne $((ni + 1)) ] |
86 then | 86 then |
87 if egrep -n '^[1-9]' ${e}_diff.txt | $HOME/bin/nogood.py $e $ni | 87 if egrep -n '^[1-9]' ${e}_diff.txt | \ |
88 $HOME/bin/nogood.py $e $ni 2>> log | |
88 then | 89 then |
89 continue | 90 continue |
90 fi | 91 fi |
91 fi | 92 fi |
92 echo " " starting tar update >> log | 93 echo " " starting tar update >> log |