Mercurial > hg > cc > cirrus_home
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/bin/doS2C.sh Thu Oct 28 12:11:08 2021 +0000 @@ -0,0 +1,20 @@ +#!/usr/bin/bash +# Usage: doS2C.sh node task cc resdir segs workd dbfile +node=$1 +task=$2 +cc=$3 +resdir=$4 +segs=$5 +workd=$6 +dbfile=$7 + +f=${dbfile%.db} +i=${f#*cdx} + +echo "> $node.$task: $segs $i" + +sqlite3 $dbfile ".mode csv" ".once $workd/$i.csv" "select count(*),* from props group by segment,ftype,https,nlangs" ".quit" + +echo "< $node.$task: $segs $i"; + +