Skip to content

Instantly share code, notes, and snippets.

View onethumb's full-sized avatar
😍
Thrilling our customers.

Don MacAskill onethumb

😍
Thrilling our customers.
View GitHub Profile
@onethumb
onethumb / mysql_splitdump.sh
Created August 15, 2016 17:34 — forked from jasny/mysql_splitdump.sh
Split MySQL dump SQL file into one file per table or extract a single table
#!/bin/bash
####
# Split MySQL dump SQL file into one file per table
# based on http://blog.tty.nl/2011/12/28/splitting-a-database-dump
####
if [ $# -lt 1 ] ; then
echo "USAGE $0 DUMP_FILE [TABLE]"
exit