Skip to content

techdad/py-compare-lists

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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:

image

About

Simple Way to Compare Lists in Python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors