Archive for the ‘Unix’ Category

Quick tip: split a large file into smaller files

Friday, October 26th, 2007

Needed to break a large file containing many messages, each message separated on a new line into many new small files containing only one message per file ... Started thinking in perl, but almost looked past the Unix split command: split -l 1 -a 3 bigfile.txt smallfile_ -l 'n' will put 'n' ...