Author Topic: timestamps and Diff  (Read 171 times)

jporkkahtc

  • Senior Community Member
  • Posts: 2095
  • Hero Points: 188
  • Text
timestamps and Diff
« on: September 03, 2020, 08:28:02 pm »
is there a way to get diff to ignore timestamps?
When diffing two log files, they tend to be filled with timestamps like:
2020-09-03 13:06:22,875 - some logged text....
And of course, when diffing two logs all the timestamps will be different.

Maybe if token mapping supported regex?

Dennis

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 3076
  • Hero Points: 449
Re: timestamps and Diff
« Reply #1 on: September 03, 2020, 11:08:22 pm »
Not a perfect solution, but this should work (I'm assuming these log files are in Plain Text mode):

Document > Plain text options... > Editing > Diff Columns

jporkkahtc

  • Senior Community Member
  • Posts: 2095
  • Hero Points: 188
  • Text
Re: timestamps and Diff
« Reply #2 on: September 04, 2020, 12:15:00 am »
I'll try ... that Diff option is well hidden!

Dan

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2506
  • Hero Points: 138
Re: timestamps and Diff
« Reply #3 on: September 04, 2020, 12:16:20 pm »
That one is with the language stuff because it was originally done for COBOL, and usually people using it always want it on or always want it off for a given language.