Here's a story that I read:
If dategrep works on a seekable file, it can do a binary search to find the first and last line to print pretty efficiently. dategrep can also read from stdin if one the filename arguments is just a hyphen, but in this case it has to parse every single line which will be slower.
via Pocket http://ift.tt/1evD5a5
Leave a comment