Python Forum
program wanted: diff that ignores numbers
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
program wanted: diff that ignores numbers
#1
i often need to see diffs of "log files" which are full of differences that are just differences of numbers that i usually don't care about. i have dealt with this in a lot of cases by changing digits to a common character such as by doing tr 123456789 000000000 to make new files to actually be compared. but there is still the problem of numbers of differing length (number of digits). so what i would like to have is a special diff program that would treat different numbers as being the same. my usual focus is to find inserted or deleted lines among many that have numbers in the same places with different values, such as dates.
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  program wanted in python Skaperen 2 2,695 Aug-07-2018, 12:05 AM
Last Post: Skaperen
  program wanted: clean up pyc files Skaperen 6 5,704 Jun-13-2017, 05:42 PM
Last Post: snippsat

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020