Content-Length: 256387 | pFad | http://github.com/avifenesh/sortLogFiles

57 GitHub - avifenesh/sortLogFiles: Algorithm for sorting multiple sorted log-files into one sorted log-file base on time-stamp
Skip to content

Algorithm for sorting multiple sorted log-files into one sorted log-file base on time-stamp

Notifications You must be signed in to change notification settings

avifenesh/sortLogFiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sortLogFiles

Algorithm for sort multiple sorted log-files into one sorted log-file base on time-stamp

The main idea behind the algorithm:
Create objects from every file, every object contain the index of the current comparing line, time-stamp of the the line and path to the file.
Create min heape base on time-stamp value and insert all the log-file objects.
Then pop the min and insert it to a new file.
After popping a line to the new file, get the next line of the file object and heapify the object to the right place base on the new time-stamp value.

How to use:

Pull repo to your machine.
Open command line and navigate to the repo directory.
Write in the command line: python main.py -d [path-to-log-files]
If the path containing white spaces encapsulate the path by quotation marks.

About

Algorithm for sorting multiple sorted log-files into one sorted log-file base on time-stamp

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages









ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/avifenesh/sortLogFiles

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy