Skip to content

Instantly share code, notes, and snippets.

View asztal's full-sized avatar
💭
Probably spending hour #5472 configuring webpack or resolving package conflicts

asztal asztal

💭
Probably spending hour #5472 configuring webpack or resolving package conflicts
View GitHub Profile
@asztal
asztal / pg_extract.sh
Last active December 4, 2016 12:12 — forked from brock/pg_extract.sh
Extract all databases (or one by name) from a sql file created by pg_dumpall
#!/bin/bash
# extract all postgres databases from a sql file created by pg_dumpall
# this script outputs one .sql file for each database in the original .sql file
# unless you pass the name of a database in the dump
if [ $# -lt 1 ]
then
echo "Usage: $0 <postgresql sql dump> [dbname]" >&2
exit 1
fi