[Solved] How to assign CLI variables from CLI output


If you want to parse the output of a command in bash script there are several utilities like grep, sed, awk, as well as shell builtins, that helps manipulating the strings to suit your needs.

On the other hand, you can’t really do GUI-programming in bash script. For simple GUIs you may check zenity if you are under Gnome.

If you have to design advanced GUIs you may consider a programming language like python with tkinter or other graphic libraries.

If you have to run those CLI commands on a server you could write your application in python with cgi/json modules for the server side and javascript/ajax as main processing language.

By the way man pages are not that bad, and the argument syntax is largerly quite consistent through all the commands.

1

solved How to assign CLI variables from CLI output