Created
September 13, 2016 17:32
-
-
Save yiqingj/b2668b24920f7e5ab56e19aa81d6faca to your computer and use it in GitHub Desktop.
batch delete database
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| psql -U osm -d postgres -c "\l" | grep atlas-* | awk '{print $1}' | xargs -n 1 dropdb -U osm |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment