Page 1 of 1

file compare - ignore part of line

Posted: 2019-12-21, 15:08 UTC
by mri
Hi,
to compare logfiles it would be nice file compare could ignore the start of each line (timestamp).
- first n char (simple and fast)
- up to first/second occurrence of a string like #9, #32 or ' - '
- regular expression (slow, could remove or select any part of line)
Thanks

Re: file compare - ignore part of line

Posted: 2019-12-21, 17:39 UTC
by HolgerK
mri wrote:
2019-12-21, 15:08 UTC
- first n char (simple and fast)
https://ghisler.ch/board/viewtopic.php?f=14&t=13208&hilit=CompareSkipFirst
ghisler(Author) wrote:
2006-12-07, 20:03 UTC
This is just an _experimental_ feature, and not perfect at all yet. For example, lines which compare as identical after the ignored part are still shown as different (in red color) if they differ in the ignored part - that part is only ignored in the line by line ignore phase. The feature would need a lot of additional work, for which I just don't have the time right now.
Regards
Holger