Bash Menu Options Selections Linux Example

Go down

Bash Menu Options Selections Linux Example

Post by jamied_uk on 10th August 2016, 13:43





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

Posts : 2442
Join date : 2010-05-09
Age : 36
Location : UK

http://address-shortner.co.uk

Back to top Go down

Re: Bash Menu Options Selections Linux Example

Post by jamied_uk on 13th July 2017, 02:29

Example 2



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

Posts : 2442
Join date : 2010-05-09
Age : 36
Location : UK

http://address-shortner.co.uk

Back to top Go down

Re: Bash Menu Options Selections Linux Example

Post by jamied_uk on 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.forumotion.com/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
avatar
jamied_uk
Admin

Posts : 2442
Join date : 2010-05-09
Age : 36
Location : UK

http://address-shortner.co.uk

Back to top Go down

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