From 0ea7b7f8c536d3b99831b689c846d8a1b64440ec Mon Sep 17 00:00:00 2001 From: Nick White Date: Tue, 11 Jun 2019 18:25:56 +0100 Subject: Fix bug in checkoverwiping script --- checkoverwiping.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/checkoverwiping.sh b/checkoverwiping.sh index a1c7d9c..a8bb3b5 100644 --- a/checkoverwiping.sh +++ b/checkoverwiping.sh @@ -11,7 +11,7 @@ find "$1" -maxdepth 1 -type f -name '*_bin0.2.hocr' | sort | while read i; do maxline=0 maxlinename="" - for f in "${n}"*hocr; do + for f in "$1/${n}"*hocr; do line=`awk -F '"' '/ocr_line/ {print $2}' "$f"|sed 's/;.*//g'|awk '{w=$4 - $2; if(w > max){max=w}} END {printf("%d\n", max)}'` b=`basename "$f"` name=`echo "$b" | sed 's/.*_//g;s/.hocr//g'` -- cgit v1.2.1-24-ge1ad