Split large text files in Mac/Nix

Lets say you have a file full of passwords that is 62,000 lines and you want to chop the file into bite-sized pieces. There is an easy terminal command to help you with that!

To split into multiple 1000 line files with a prefix of “SPLAT” here is the command:

split -l 1000 textfile.txt SPLAT

Leave a Reply

There aren't any comments at the moment, be the first to start the discussion!