summaryrefslogtreecommitdiff
path: root/bin/wired-dedup-h4-items.py
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2020-02-16 15:57:40 -0500
committerluxagraf <sng@luxagraf.net>2020-02-16 15:57:40 -0500
commit2a9538f7711dcea71ba5702ca94a9d9c00287ea4 (patch)
treee0fe5ea7c909b01e10bf6a8dd4abcb619b6924c9 /bin/wired-dedup-h4-items.py
parent3165ef5abdb298108efa2ba3d339f70ca966315a (diff)
added the rest of bin
Diffstat (limited to 'bin/wired-dedup-h4-items.py')
-rw-r--r--bin/wired-dedup-h4-items.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/bin/wired-dedup-h4-items.py b/bin/wired-dedup-h4-items.py
new file mode 100644
index 0000000..77858fb
--- /dev/null
+++ b/bin/wired-dedup-h4-items.py
@@ -0,0 +1,13 @@
+import sys, collections
+
+filename = '%s' %(sys.argv[1])
+with open(filename, newline='') as f:
+ content = f.readlines()
+ new_list = []
+ for line in content:
+ if line.startswith('####'):
+ title = line.strip().split('####')[1].split(' for ')[0]
+ new_list.append(title)
+ print(title)
+ print([item for item, count in collections.Counter(new_list).items() if count > 1])
+