From 9dd6b0a8380db93c046823cec0a544f10f87e0c9 Mon Sep 17 00:00:00 2001 From: Joe Tretter Date: Mon, 5 Sep 2022 10:22:46 -0500 Subject: [PATCH] chang the chunk combiner to start counting at 1 as of recent UI change. --- Decoder/combineChunks.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Decoder/combineChunks.sh b/Decoder/combineChunks.sh index 151b7cd..9ed1242 100755 --- a/Decoder/combineChunks.sh +++ b/Decoder/combineChunks.sh @@ -1,15 +1,17 @@ #!/bin/bash rm output.dat -currFN=0 +currFN=1 +chunkNum=$(ls chunks/*.chunk | wc -l) echo "processing chunks " -while /bin/true; do +while [ $currFN -le $chunkNum ] ; do if [ ! -f chunks/${currFN}.chunk ] ; then echo chunk $currFN is missing! exit 1 else - echo -n $currFN/ + echo -n [$currFN/$chunkNum] fi cat chunks/${currFN}.chunk >> output.dat let currFN=$currFN+1 done +echo DONE.