comparison bin/doS2T.sh @ 154:2643a6825f17

instead of csv
author Henry S. Thompson <ht@inf.ed.ac.uk>
date Wed, 17 Nov 2021 18:26:33 +0000
parents
children
comparison
equal deleted inserted replaced
153:2b59f3ef2294 154:2643a6825f17
1 #!/usr/bin/bash
2 # Usage: doS2T.sh node task cc resdir segs workd dbfile
3 node=$1
4 task=$2
5 cc=$3
6 resdir=$4
7 segs=$5
8 workd=$6
9 dbfile=$7
10
11 f=${dbfile%.db}
12 i=${f#*cdx}
13
14 echo "> $node.$task: $segs $i"
15
16 sqlite3 $dbfile ".mode tabs" ".once $workd/$i.tsv" "select count(*),* from props group by segment,ftype,https,nlangs" ".quit"
17
18 echo "< $node.$task: $segs $i";
19
20