The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 01-15-2008
kamleshm kamleshm is offline
Registered User
  
 

Join Date: Jan 2008
Posts: 2
how to divide single large log file into multiple files.

Can you please help me with writing script for following purpose.
I have to divide single large web access log file into multiple log files based on dates inside the log file.
For example:
if data is logged in the access file for jan-10-08 , jan-11-08 , Jan-12-08
then make small log file only for that specific date so that it would be easily readable.

The size of the access log file is 500mb so it can't be open in vi editor either.

Thanks in advance!!