Skip to content

Instantly share code, notes, and snippets.

View thanuja919's full-sized avatar

Thanuja Kularathna thanuja919

View GitHub Profile
@thanuja919
thanuja919 / split-mysql-dump.sh
Created June 18, 2017 13:58
split-mysql-dump
#!/usr/bin/env bash
#When executing the script keep the main db dump in another folder.
AWK=awk
REGEX_NAME="Current Database: \`(.*)\`"
# Checks argument and prints usage if needed
if [ "$#" -lt "1" ]
then