# trufflehunter log file searching utility ``` USAGE: hun [FLAGS] [OPTIONS] [ARGS] FLAGS: -h, --help Prints help information --long-help Long help information explaining formats and time expressions -V, --version Prints version information --verbose Provide the precise time range and line numbers OPTIONS: -e, --end-line The last line to search to -f, --format The time stamp format -s, --start-line The first line to search from ARGS: The log file to search in ... The period of time to search for events in ``` Trufflehunter (hun) is a tool for quickly extracting lines from a log file within a specified time range. Its required arguments are a log file name and a time expression. Examples ======== > hun log.txt from 3 am today until 3:15 2019-01-12 3:00:01 -- tomorrow and tomorrow and tomorrow sometimes there's garbage between timestamps 2019-01-12 3:05:13 -- creeps in this petty pace from day to day 2019-01-12 3:06:00 -- to the last syllable of recorded time [exit stage left pursued by bear] 2019-01-12 3:10:23 -- and all our yesterdays have lighted fools 2019-01-12 3:14:59 -- the way to dusty death > hun --verbose log.txt from 3 am today until 3:06 lines 12345 - 12349 2019-01-12 3:00:01 -- tomorrow and tomorrow and tomorrow sometimes there's garbage between timestamps 2019-01-12 3:05:13 -- creeps in this petty pace from day to day 2019-01-12 3:06:00 -- to the last syllable of recorded time [exit stage left pursued by bear] Time Expressions ================ Trufflehunter uses the two_timer crate to parse time expressions. The range of time expressions it will understand would be somewhat arduous to enumerate. In general they fit one of these patterns