How would I tell a bash script to start over from the top?

后端 未结 5 371
迷失自我
迷失自我 2020-12-10 19:24

For example, in the below script startover starts back from the top:

##########################################################################
         


        
5条回答
  •  借酒劲吻你
    2020-12-10 20:21

    How about enclosing the entire script in a while loop? For example,

    while :
    do
        script
    done
    

    You may want to add a condition to break out of the loop.

提交回复
热议问题