I often have longer redundant log files, redundant in the sense that blocks of text repeat with minor changes. The length of the files makes it difficult to spot the actual information. I had the idea to write a script which identifies recurrences and reduces the file by replacing each recurrence by the output of diff for consecutive blocks. Before I start I would like to know if such a tool (or maybe option to diff) already exists.
Tell me more
×
Unix & Linux Stack Exchange is a question and answer site for
users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.
|
You'll probably like to have a look at user Drench approach to a similar problem, in an answer he gave on this very site : http://unix.stackexchange.com/a/837/27616 (ie, using |
|||
|
|
|
You mostly search in logfiles, and cutting out information that might be needed isn't a good idea. That said, there are tools like |
|||
|