I generated data from the netstat -a command in the terminal, now from there the result is all the incoming and outgoing ip addresses which I wrote to a file, how to I retrieve only the ip address via columns?
Also, how do I retrieve data by column parameters? For example, starting at column 10 and ending at column 27. I have tried the filter function but it didn’t work. Thanks!
This is basically the same as Levon’s answer, but slightly more compact and Pythonic, and with the numbers adjusted to a guess at what I suspect the OP is trying to do.