{"repo":"mdom/dategrep","free":true,"listed":false,"github":"https://github.com/mdom/dategrep","clone":"git clone https://github.com/mdom/dategrep.git","description":"print lines matching a time range","language":"Perl","stars":180,"topics":["command-line-tool","unix","grep","perl","timestamp","daterange","logging"],"license":null,"category":"cli-tools","readme_excerpt":"NAME dategrep - print lines matching a time range SYNOPSIS dategrep --start \"12:00\" --end \"12:15\" syslog dategrep --end \"12:15\" --format \"%b %d %H:%M:%S\" syslog dategrep --last-minutes 5 syslog cat syslog dategrep --end \"12:15\" DESCRIPTION dategrep reads a file and prints every line with a timestamp that falls into a user defined time range. When invoked on a normal file, dategrep uses a binary search to find the first matching line. It can also read from stdin and compressed files but in this case it has to parse the timestamp of every line until the first matching line is found. As soon as it finds the first date not in the range, dategrep terminates. dategrep can already parse some common logs formats like rsyslog and apache common log format. Additional formats can be used by supplying a strptime(3) format string. See UPGRADING if you used dategrep before. dategrep sees currently a lot of change, so this version might be less reliable as version 0.58. Please submit bug reports if anything unusual happens. EXAMPLES Print all lines between 12:00 and 12:15: dategrep --start 12:00 --end 12:15 syslog Without --start, print all lines after epoch: dategrep --end 12:15 syslog Using a user supplied format string: dategrep --format \"%b %d %H:%M:%S\" syslog Printing all lines from the last 5 minutes. dategrep --last-minutes 5 syslog Reading from compress files or stdin: cat syslog dategrep --end 12:15 dategrep --end 12:15 syslog.gz OPTIONS - --start --from DATE Print all lines from D","default_branch":null,"files":null,"tree":[],"storefront":"/r/mdom","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/mdom/dategrep/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}