An easy way to diff log files, ignoring the time stamps?

后端 未结 5 1787
终归单人心
终归单人心 2021-02-01 13:41

I need to diff two log files but ignore the time stamp part of each line (the first 12 characters to be exact). Is there a good tool, or a clever awk command, that could help m

5条回答
  •  执念已碎
    2021-02-01 13:50

    For a graphical option, Meld can do this using its text filters feature.

    It allows for ignoring lines based on one or more python regex. The differences still appear, but lines that don't have any other differences won't be highlighted.

提交回复
热议问题