PC & IT SUPPORT MADE EASY FORUM
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Bash Menu Options Selections Linux Example

Go down

Bash Menu Options Selections Linux Example Empty Bash Menu Options Selections Linux Example

Post by jamied_uk 10th August 2016, 13:43





Code:
#!/bin/bash
select fname in *;
do
    echo you picked $fname \($REPLY\)
    break;
done
jamied_uk
jamied_uk
Admin

Posts : 3053
Join date : 2010-05-09
Age : 41
Location : UK

https://jnet.sytes.net

Back to top Go down

Bash Menu Options Selections Linux Example Empty Re: Bash Menu Options Selections Linux Example

Post by jamied_uk 13th July 2017, 02:29

Example 2



jnet.forumotion.com/t1530-linux-mint-18-2-firewall-shell-commands-scripts#2288
jamied_uk
jamied_uk
Admin

Posts : 3053
Join date : 2010-05-09
Age : 41
Location : UK

https://jnet.sytes.net

Back to top Go down

Bash Menu Options Selections Linux Example Empty Re: Bash Menu Options Selections Linux Example

Post by jamied_uk 19th June 2018, 21:01

So to do a mass scan and have this menu help out example see below:
Code:
#!/bin/bash
# (c) J~Net 2018
# jnet.forumotion.com/t1366-bash-menu-options-selections-linux-example?highlight=bash+menu
#
# jnet.forumn.biz/t1506-linux-bash-mass-scanning-the-whole-internet-web-cams#2223
#
# ./menus.sh
#
select fname in *;
do
 echo you picked $fname \($REPLY\)
 bash $fname \($REPLY\)
 break;
done
jamied_uk
jamied_uk
Admin

Posts : 3053
Join date : 2010-05-09
Age : 41
Location : UK

https://jnet.sytes.net

Back to top Go down

Bash Menu Options Selections Linux Example Empty Re: Bash Menu Options Selections Linux Example

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum