git://git.onelab.eu
/
myplc.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
egrep is obsolete
[myplc.git]
/
bin
/
spot-dup-accounts.sh
1
#!/bin/bash
2
3
DB=planetlab5
4
USER=pgsqluser
5
CMD="select email, count(email) from persons where deleted=false group by email having count(email) > 2;"
6
7
psql -U $USER $DB -c "$CMD"