dharmit / tinyutils

Small utils to print Linux system info in a prettier format
MIT License
4 stars 8 forks source link

Parse output of "ip a" into a human friendly way #1

Open himadrics opened 9 years ago

himadrics commented 9 years ago

Let's create something(using python) to modify the comlex output of " ip a " command into simple, easy terms with an eye-catching format. So that even beginners can interpret it properly. For this, the first thing we can do is to fetch the information from the terminal to our script . Secondly we'll need to interpret it. And the third step will be to modify it into simple terms and eye-catching format. The last step will be sending it back to the terminal to replace the original output with our modified one.

But I have no idea how to perform these steps. Looking forward to your suggestions regarding this issue...

dharmit commented 9 years ago

First things first, don't use the word sir. :P Feel free to tag someone @Himadri-Pandya

dharmit commented 9 years ago

@Himadri-Pandya: To break it down, we can first start by somehow running Linux shell commands from python script. That should be the starting point IMO.