March 2011

csplit command

Let’s say you have a single file (a mysql dump) containing the output of multiple database backups… and you want to split them out into individual files. Input fil: # MySQL dump 7.1 # # Host: localhost Database: Purchase_Tracking # … Lots of CREATE TABLE and INSERTS … # MySQL dump 7.1 # # Host: localhost Database: Test # … Lots of CREATE TABLE…