git.shiar.nl
/
sheet.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
word edit: prio(rity level) column input
[sheet.git]
/
tools
/
mkwordlist
1
#!/bin/sh
2
psql sheet -XAt -c "
3
SELECT json_object_agg(coalesce(form, ''), forms)
4
FROM word RIGHT JOIN (
5
SELECT cat id, array_agg(form ORDER BY form) forms
6
FROM word WHERE ref IS NULL GROUP BY cat
7
) sub USING (id)
8
" | sed 's/:/=>/g'