Skip to content

Instantly share code, notes, and snippets.

@akshithg
Created November 1, 2019 19:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save akshithg/0233cd1cc7b255c41328db32b31ddd01 to your computer and use it in GitHub Desktop.
Save akshithg/0233cd1cc7b255c41328db32b31ddd01 to your computer and use it in GitHub Desktop.
#!/usr/bin/env python3
import glob
import os
files = glob.glob("./callgraph/*")
cmd = """awk 'FNR==NR {a[$0]++; next} !a[$0]' {} {} | sort | uniq >> x"""
for i in range(len(files)):
for j in range(i+1,len(files)):
os.system("awk 'FNR==NR {a[$0]++; next} !a[$0]' " + files[i] + " " + files[j] + " | sort | uniq >> x")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment