Created
March 12, 2017 02:27
-
-
Save vikjam/e893055d099e628004105b4745104685 to your computer and use it in GitHub Desktop.
Split file into equal parts
This file contains hidden or 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
| awk 'NR%20==1 { file = FILENAME "_" sprintf("%04d", NR+19) } { print > file }' domains.xml |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment