Created
December 20, 2011 08:11
-
-
Save vls/1500742 to your computer and use it in GitHub Desktop.
make test dataset
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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