I want to locate a date which is somewhere in an 8 GB log (text).
Can I somewhat bypass a full sequential read, and first do binary splits of the file (size), or somehow navigating the filesystem inodes
(which I know very little about), to start reading from each split point, until I find a suitable offset from where to start my text search for a line cotaining the date?
tail
's read of the last line doesn't use a normal sequential read, so I wonder if this facility is somehow available in bash, or would I need to use Python or C/C++... but I am specifically interested in a bash
option..