On Fri, Feb 11, 2005 at 05:59:25PM -0800, Carl Lowenstein wrote:
> On Fri, 11 Feb 2005 12:38:28 -0800, Lan Barnes <[EMAIL PROTECTED]> wrote:
> > On Fri, Feb 11, 2005 at 12:30:16PM -0800, Michael J McCafferty wrote:
> > >
> > >    I have a log file that wasn't rotated for a while (it's destination 
> > > directory
> > > didn't exist). It got big (about a gig and a half). I need to break it 
> > > into
> > > smaller chunks. Ideally it would be in one day chunks, but just dividing 
> > > the
> > > huge file in to a dozen or so smaller ones would be just fine.
> > >
> > > What's the tool ? What's the command using that tool ?
> > >
> > > Mike
> > 
> > If you want to read the chunks, perl. If you want them just to be smaller,
> > split.
> 
> Why perl?  If you want to split on line boundaries, "split -l".
> If there is some structure to the file that can be used for
> distinguishing one chunk from the previous, "csplit".
> 
>     carl

Carl "he knows his SW" Lowenstein has spoken.

-- 
Lan Barnes                    [EMAIL PROTECTED]
Linux Guy, SCM Specialist     858-354-0616
-- 
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list

Reply via email to