Skip to content

Instantly share code, notes, and snippets.

@GermanAizek
Last active February 29, 2024 15:30
Show Gist options
  • Save GermanAizek/0fbef730d02475a38266da84fffcd012 to your computer and use it in GitHub Desktop.
Save GermanAizek/0fbef730d02475a38266da84fffcd012 to your computer and use it in GitHub Desktop.
radiff2 or rz-diff helper scripts

radiff2 filter only UNMATCH functions:

radiff2 [file] [file] > match.txt
import string   
import random

with open('match.txt', 'r') as f1, open('match_filtered.txt', 'w') as f2:
    lines = f1.readlines()

    for line in lines:
        line = line.strip()
        if 'UNMATCH' in line:
            f2.write(line + '\n')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment