W
W
Wattka2021-12-20 20:10:50
linux
Wattka, 2021-12-20 20:10:50

How to run select (in BASH) install applications?

Hello! Need help with a script. I bite my elbows and can't figure out how to do it.
It is necessary to make it so that when I run the sh file, I have a text and this text determines what needs to be downloaded. Let's say I opened the script. I got the text Which program to install (from the list in the script). For example, I wrote Google chrome and chrome was installed automatically via wget. Wrote Opera through wget installed opera, etc., etc. Thank you!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
ky0, 2021-12-21
@ky0

For such dialogs in scripts, IMHO, you should not fence bicycles, but it is much better to use something like ncurses .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question