4 Oct
2005
4 Oct
'05
11:23 a.m.
On 10/4/05, Aramico <aramico@duahati.com> wrote:
I have a log with more than 200000 lines in one single file. Can I split it into several defined files as file1, file2, file3, file4, filen where I can defined it for 20000 line for each ? How can I make it ? what command in linux to make it ?
sed is your friend... man sed something like: sed -n 1,+19999p <big-file> > <little-file-1> then sed -n 19999,+19999p <big-file> > <little-file-2> of course, you'd best make a loop to do this quickly. BR