comparison bin/doS2C.sh @ 152:0072e4ee6c67

use sqlite3 just to tabulate
author Henry S. Thompson <ht@inf.ed.ac.uk>
date Thu, 28 Oct 2021 12:11:08 +0000
parents
children
comparison
equal deleted inserted replaced
151:66d17f7410f2 152:0072e4ee6c67
1 #!/usr/bin/bash
2 # Usage: doS2C.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 csv" ".once $workd/$i.csv" "select count(*),* from props group by segment,ftype,https,nlangs" ".quit"
17
18 echo "< $node.$task: $segs $i";
19
20