Skip to content

Instantly share code, notes, and snippets.

@vls
Created December 20, 2011 08:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vls/1500742 to your computer and use it in GitHub Desktop.
Save vls/1500742 to your computer and use it in GitHub Desktop.
make test dataset
#!/usr/bin/env python
import os
begin = 1
end = 3000000
inc = 3000000
for j in xrange(3):
with open('%s.txt' % (j + 1), 'w') as wf:
for i in xrange(begin, end + 1):
print >> wf, i
begin += inc
end += inc
os.system("tar czvf all.tgz 1.txt 2.txt 3.txt")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment