scatteredray / tgrep Goto Github PK
View Code? Open in Web Editor NEWtime log grep
time log grep
tgrep -------------------- tgrep does a search over the contents of a log which is sorted in date order, and prints everything in a given date range. Usage: tgrep <time range> [filename] tgrep <start time> [end time] [filename] Dates are parsed in the form of <hour>[:<minute>[:<second>]] and time ranges are <start date>-<end date> Notes: Logs are assumed to be in-order, not span much more then 24-hours, and not contain stray dates. If a time is passed in without an end time, the end time is assumed to be anything within the range of what's specified, so: 12 => 12:00:00-12:59:58; 12:12 => 12:12:00-12:12:59; 12:12:12 => 12:12:12-12:12:12 For start time if it's specified within thirty minutes of the first time in the log it's assumed to be on the first day in the file, but if it's before thirty minutes, it's assumed that you'd prefer the second instance of that time. End times are always assumed to be after start times, if they are before the start time, a day is added onto it so that it's put afterwards. Files can be parsed from mostly anywhere within the command string. If you have three days in the file some things are likely to go wrong. In order to handle files over 2GB the application needs to be compiled in 64-bit mode. It's been tested on Mac OS X using BSD make. It's written in pretty standard C++ so it should compile and run pretty much anywhere. A lot of stuff could be cleaned up or simplified, but I feel that leaving it as so may provide better insights. Tests.sh contains some of the tests I was using, but it just runs them, it doesn't properlly compare the output.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.