Nifty 1-10 liners: How to extract & sort IPv4 address data from a given file or set of files - three ways

How to extract & sort IPv4 address data from a given file or set of files in a directory – three methods (using Bash egrep sort uniq, Python subprocess popen & Python re asyncio aiofiles):


With Bash:

With Python and Bash:


With Python (Async):


Via github.com/cjamesni.

Comments