- or download this
$ wc -l big1.txt big2.txt big3.txt
3515200 big1.txt
...
$ ls -lh hash2.db
-rw-r--r-- 1 mario mario 160M Feb 7 22:57 hash2.db
- or download this
$ time ./linux-q -T "select name, sum(value) from hash.db:::kv_store g
+roup by name order by sum(value) desc, name" >out.txt
real 0m49.136s
user 0m48.667s
sys 0m0.423s
- or download this
#!/usr/bin/env bash
# https://perlmonks.org/?node_id=11150232
...
done
exec "$SQLCMND" "$DB" < <(echo "$SQLSCRIPT")
- or download this
#!/usr/bin/env bash
# https://perlmonks.org/?node_id=11150232
...
SQLSCRIPT="$( make_script )"
exec "$SQLCMND" "$DB" < <(echo "$SQLSCRIPT")