summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDirk Engling <erdgeist@erdgeist.org>2014-02-12 01:41:32 +0100
committerDirk Engling <erdgeist@erdgeist.org>2014-02-12 01:41:32 +0100
commitaa190c8e82fc36054a26cffb6e32c1c47516b310 (patch)
tree2ea21f321c9fa2158be32c25eb02398ad7c61c5c
parent9c46deb628e21991606bbf2a23ecb678a40cd243 (diff)
jot is 1-based, dont reference non-existing file
-rwxr-xr-xsrc/makecolumns.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/makecolumns.sh b/src/makecolumns.sh
index 5d2d90b..d70f564 100755
--- a/src/makecolumns.sh
+++ b/src/makecolumns.sh
@@ -204,7 +204,7 @@ handle_new_format() {
204 printf "done.\n" 204 printf "done.\n"
205 205
206 printf "Splitting decompressed chunks into their columns (11 total) ... 1, " 206 printf "Splitting decompressed chunks into their columns (11 total) ... 1, "
207 jot -w "file_%05X" - 0 $rows 11 | xargs cat | xxd -ps -c1 > column_0 207 jot -w "file_%05X" - 0 $(( rows - 1 )) 11 | xargs cat | xxd -ps -c1 > column_0
208 208
209 for col in 1 2 3 4 5 6 7 8 9 10; do 209 for col in 1 2 3 4 5 6 7 8 9 10; do
210 printf "%d, " $(( col + 1 )) 210 printf "%d, " $(( col + 1 ))