X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=find-pgn-split-point.sh;h=111beaecc30a0341fd53750f8fa76050235317b0;hb=04d675c5a4a867b2c15e2ef64d5179353fd1489e;hp=b23bc339872c249ddb8f158c620c5cd072936a7c;hpb=55481cd69d21b31bfdcc6e33853ea475ed16f622;p=remoteglot-book diff --git a/find-pgn-split-point.sh b/find-pgn-split-point.sh index b23bc33..111beae 100755 --- a/find-pgn-split-point.sh +++ b/find-pgn-split-point.sh @@ -24,8 +24,4 @@ split_point() { fi } -FROM=$( split_point "$FILE" $P $NUM ) -TO=$( split_point "$FILE" $(( P + 1 )) $NUM ) -SIZE=$(( TO - FROM )) - -tail -c +$FROM "$FILE" | head -c $SIZE +split_point "$FILE" $P $NUM