From time to time I need to dig through huge log files (several GB unpacked) to debug a specific error.
Now, vim is OK for browsing through the file, but when I need to find something in the file it's completely useless. Is there some tool that could index the log and allow me to search the file faster?
Ideally a command line tool.
EDIT: Just to clarify, tools like ack or grep aren't suitable since I need to examine the context of the matches and -C,-A,-B just aren't good enough. Plus ack and grep are still unusably slow.
grep? – Bernhard Feb 27 at 11:47grepvs.vimin terms of speed, butgrepis really unsuitable for what I need to do with the files. I need more flexibility than the-C-Band-Aoptions offer. – Let_Me_Be Feb 27 at 11:57less? Searching a file with less is by magnitudes faster compared tovim(even with LargeFile plugin). But I assume the file needs to fit into memory. Furthermore I doubt that it will be faster thangrep. – Marco Feb 27 at 12:37