changeset 110:a0ea1e4a714d

pass in debug flag(s) to merge_date.py
author Henry Thompson <ht@markup.co.uk>
date Tue, 19 Sep 2023 19:40:58 +0100
parents 52c6a9b0fc8c
children ab3d547f3e76
files bin/do_idx.sh
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/bin/do_idx.sh	Tue Sep 19 19:29:41 2023 +0100
+++ b/bin/do_idx.sh	Tue Sep 19 19:40:58 2023 +0100
@@ -1,9 +1,14 @@
 #!/bin/bash
+while [ "$1" = "-d" ]
+do
+ shift
+ debug="$debug -d"
+done
 export res="$1"
 orig="$2"
 # igzip was faster, but produced bigger files, so went to gzip one step
 # smaller than default (-6), which produces slightly _smaller_ blocks.
-merge_date.py <(LC_ALL=C sort -m -k1,2 -s $res/ks_[0-9]*.tsv) $orig $res/idx |\
+merge_date.py $debug <(LC_ALL=C sort -m -k1,2 -s $res/ks_[0-9]*.tsv) $orig $res/idx |\
           parallel -j 10 'echo {#} {} >$res/merge_{#}.log
                           echo $(date) {#} {}
                           export res