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 lowenstein marine physical lab u.c. san diego
[EMAIL PROTECTED]
--
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list