diff options
author | Raghuram Subramani <raghus2247@gmail.com> | 2024-12-06 20:41:29 +0530 |
---|---|---|
committer | Raghuram Subramani <raghus2247@gmail.com> | 2024-12-06 20:41:29 +0530 |
commit | 65a385a2c76c1bfc7cf8f43082edd18cb1192669 (patch) | |
tree | 75b81dff5e1f3068cfa064f9a69dc7c19cf74681 /diff.py | |
parent | 3cf2585839b0988d83187b94e9fdea69eda02f75 (diff) |
add scripts
Diffstat (limited to 'diff.py')
-rw-r--r-- | diff.py | 18 |
1 files changed, 18 insertions, 0 deletions
@@ -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) |