Skip to content

Use ifparser to parse output of ifconfig

  • by

If you want to parse output of ifconfig with Python, you can use ifconfig. Install: sudo pip install -U ifparser Usage: from ifparser import Ifcfg import commands ifdata = Ifcfg(commands.getoutput(‘ifconfig -a’)) # get all the… 

Hello!

  • by

Welcome to zcnus! I am going to post my original and translated articles related to technologies, cultures, and other things. Stay tuned and have fun!