Tools to break apart large log files.

Chris F.A. Johnson chris-E7bvbYbpR6jSUeElwK9/Pw at public.gmane.org
Thu Dec 10 03:14:59 UTC 2009


On Wed, 9 Dec 2009, Scott Sullivan wrote:

> What I Have:
>     Chat log files that span multiple months (like IRC channel logs).
> 
> What I want:
>     To break those large files into many smaller files based on a certain time
> gag between posts.
>     ie. Break to new file IF time between lines n and n+1 is > 2 hour.

   Use awk. Without seeing what the files look like, I can't be more
   specific.

-- 
   Chris F.A. Johnson, webmaster         <http://woodbine-gerrard.com>
   ===================================================================
   Author:
   Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress)
   Pro Bash Programming: Scripting the GNU/Linux Shell (2009, Apress)
--
The Toronto Linux Users Group.      Meetings: http://gtalug.org/
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists





More information about the Legacy mailing list