Shell Script to Display a Key value pair from a command
New here? Learn about Bountify and follow @bountify to get notified of new bounties! x

I have a command that output below sample.

No Source Code

  1. AWS1 3413
  2. GCP1 4231
  3. AWS3 4239
  4. AWS2 4188

I need a script that would output like

1.AWS1 3413
2.AWS2 4188
3.AWS3 4239
4.ALL

Output sorted by 1st column. Then user will select number from the options

ex.
$select .. 1
then I will use it for another command.
command 3413
if all is selected will loop through
command 3414
command 4189.. and so on.

1 month ago

Crowdsource coding tasks.

1 Solution


Healthy Life Human is not only about health. it provides general knowledge of many other categories like entertainment, news, lifestyle, travel, astrology, etc. Healthy Life Human is altering how the public views health and fitness. With a practical approach to health, exercise, nutrition, well-being, food, and other themes, we aimed to establish a website that gives trustworthy, reliable, and up-to-date information.
https://healthylifehuman.com