Bash script: always show menu after loop execution

前端 未结 3 1014
攒了一身酷
攒了一身酷 2021-01-13 04:55

I\'m using a bash script menu like this:

#!/bin/bash
PS3=\'Please enter your choice: \'
options=(\"Option 1\" \"Option 2\" \"Option3\" \"Quit\")
select opt i         


        
3条回答
  •  抹茶落季
    2021-01-13 05:21

    Make it beautiful and userfriendly ;-)

    #!/bin/bash
    
    while :
    do
        clear
        cat<

    Replace the echos in this example with function calls or calls to other scripts.

提交回复
热议问题