Thanks ya'll.I got what Ineeded. I just couldn't remember split for some reason.. I was thinking all kinds of weird stuff. Chop ? break ? saw ? slice ?
There were ~150 days worht of data, and 1.5Gb. So, I figured I'd just split it into 150 files of about 10Mb each. So it went somethign like this: split -C 10m bigasslogfile.log bigasslogfile. Sure it was dirty, but it was quick. These are just in case we lose the data base that has the live data in it. That data is on an EMC Array. The likelihood of needing this is so slim. Quoting Carl Lowenstein <[EMAIL PROTECTED]>: > 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 > -- ************************************************************ Michael J. McCafferty Principal, Security Engineer M5 Hosting 858-576-7325 Voice http://www.m5hosting.com ************************************************************ ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. -- [email protected] http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list
