Created
February 8, 2015 21:50
-
-
Save WilliamQLiu/327d168ebd0626111971 to your computer and use it in GitHub Desktop.
Split large file by number of lines
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
$split -l 1000000 data data. | |
# Will return files: data.aa, data.ab, data.ac, etc. each with the number of lines specified (one million in this case) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment