summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--diff.py18
-rwxr-xr-xget_paths.sh3
2 files changed, 21 insertions, 0 deletions
diff --git a/diff.py b/diff.py
new file mode 100644
index 0000000..226248f
--- /dev/null
+++ b/diff.py
@@ -0,0 +1,18 @@
+import sys
+
+if len(sys.argv) != 3:
+ print(f'Usage: {sys.argv[0]} ONE TWO')
+
+one = open(sys.argv[1]).read().split('\n')
+two = open(sys.argv[2]).read().split('\n')
+
+print(f'{sys.argv[2]} doesn\'t contain:\n')
+for i in one:
+ if i not in two:
+ print(i)
+
+print('\n\n\n')
+print(f'{sys.argv[1]} doesn\'t contain:\n')
+for i in two:
+ if i not in one:
+ print(i)
diff --git a/get_paths.sh b/get_paths.sh
new file mode 100755
index 0000000..b62cefc
--- /dev/null
+++ b/get_paths.sh
@@ -0,0 +1,3 @@
+#!/usr/bin/env bash
+
+cat $1 | grep "<project " | grep -o 'path="[^"]*"' | sed 's/path="//g' | sed 's/"//g'