Skip to content

Instantly share code, notes, and snippets.

@danhyun
Created January 28, 2013 23:35
Show Gist options
  • Save danhyun/4660312 to your computer and use it in GitHub Desktop.
Save danhyun/4660312 to your computer and use it in GitHub Desktop.
split sql batch file into 500 line pages with prefix
csplit -k some_file.sql -f some_file_prefix -b %02u.sql 500 {10000}
500 is number of lines
{10000} is how many times to repeat an action
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment