Archives
|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Summary-Talk] Re: log split command
>>Thanks I tried giving command uncompress -cfv access_log but it seems its not a compressed zip file. I get error access_log.Z . No such file or directory. > >>Then I can't get the access_log to split > >error: split: 1000M: illegal byte count. > >Does this command look right split -b 1000M access_log > >Does anyone know the extension of the acc_log file on unix apache under OS X? > >> >>split -b 1000M somehugefile.log >> >> >>will split the file into 1GB pieces, which can then be restuffed into >>individual files. >> >>it's important to note that it isn't enough to split the file into >>pieces, then put the pieces back into one large zip file... it's the >>aggregate of the uncompressed archive that needs to be less than 2gb. >> >>hope this helps. >>cameron I'm sorry, my mistake... that should have been a lowercase M: split -b 1000m somehugefile.log you could add the final split file name prefix to every generated file, too... otherwise you get informative file names such as xaa, xab, xac etc..: split -b 1000m somehugefile.log somehugefile will you get you: somehugefilexaa, somehugefilexab, etc. cheers cam -- ----------------------------------------------- Cameron Knowlton iGods Internet Marketing cameronk@igods.com www.igods.com P: 250.382.0226 ------------- Go to <http://summary.net/list.html> to update subscription info.
|