File: example3.sh

package info (click to toggle)
sra-sdk 2.9.3%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 31,724 kB
  • sloc: ansic: 182,592; cpp: 33,717; sh: 5,385; perl: 4,969; makefile: 4,030; python: 3,560; java: 2,363; yacc: 786; lex: 416; lisp: 77; xml: 54
file content (12 lines) | stat: -rwxr-xr-x 286 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
echo "----- what spot-groups do we have -----"

TOOL="vdb-sql"
ACC="SRR834507"
SELECT="select SPOT_GROUP, count( SPOT_GROUP ) from VDB group by SPOT_GROUP;"

#to prevent the shell from expanding '*' into filenames!
set -f

CMD="$TOOL :memory: -acc $ACC \"$SELECT\""
echo $CMD
eval $CMD