https://github.com/techdad/py-compare-lists
Simple Way to Compare Lists in Python
https://github.com/techdad/py-compare-lists
Last synced: 3 months ago
JSON representation
Simple Way to Compare Lists in Python
- Host: GitHub
- URL: https://github.com/techdad/py-compare-lists
- Owner: techdad
- Created: 2022-12-06T13:05:19.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-05-17T17:14:09.000Z (about 4 years ago)
- Last Synced: 2025-10-26T01:20:45.179Z (7 months ago)
- Size: 2.93 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Simple Way to Compare Lists of IP Addresses in Python
## How to Use
### Create your 2 text files with the IP Addresses in a list
- One IP address per line
- Store files in 'input' directory
### Edit the file paths to the IP Address List Files
```
ips1 = "/Users/your_user/Github/sub_folder/compare-lists/input/file1.txt"
ips2 = "/Users/your_user/Github/sub_folder/compare-lists/input/file2.txt"
```
Note: The ip addresses used in this repo were created with https://www.ipvoid.com/random-ip/
### Run python3 compare-lists.py in the directory
## Sample Output:
