bash: split text file
Hello everybody,
I have to deal with very large text files (up to 1000000 rows). For the processing of these files, I'd like to split them into smaller pieces (say 10000 rows each). Is there a simple bash command (or bash script) to do such thing? Thanks in advance, .-=~ iluvatar ~=-. |
guess what?
man split google "man split" |
man split
i think you want the option lines=10000 if you dont specify an output prefix it will put first 10000 in xaa second 10000 in xab and so on... |
gee I never knew this existed :S sorry for bothering you... and thanks for the awnsers!
|
no probs
;) that's what we log in for! |
All times are GMT -5. The time now is 10:12 AM. |