Mercurial > hg > cc > cirrus_home
annotate bin/doS2T.sh @ 191:b5904d0bdfd4
orig, more or less
| author | Henry S. Thompson <ht@inf.ed.ac.uk> |
|---|---|
| date | Wed, 25 Sep 2024 09:49:12 +0100 |
| parents | 2643a6825f17 |
| children |
| rev | line source |
|---|---|
| 154 | 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 |
