How to censor IP addresses in a file with Python?
- by Julio
Hello everyone.
I have a log file containing some Whois entries with relative IP addresses which I want to censor like:
81.190.123.123 in 81.190.xxx.xxx.
Is there a way to make such a conversion and rewrite the file contents without modifying the rest?
Thank you for the help!