Last active
October 25, 2020 10:12
-
-
Save adithya321/ec33e36dd62dd1f5dac73ff035113e58 to your computer and use it in GitHub Desktop.
# brew install coreutils -l 5000: split file into files of 5,000 lines each. -d: numerical suffix. This will make the suffix go from 00 to 99 by default instead of aa to zz. --additional-suffix: lets you specify the suffix, here the extension $FileName: name of the file to be split. file: prefix to add to the resulting files.
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
gsplit -l 5000 -d --additional-suffix=.log $FileName file- |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment