in reply to spliting large file into smaller
Can also do this in a perl oneliner (warning -- this one is very inefficient):user@host ~$] split -l 30 bigfile.txt
Take a look at the $. entry in perlvar.perl -ne 'open FILE, ">>", "smallfile".int($./30).".txt"; print FILE $ +_; close FILE }' bigfile.txt
|
|---|