4
rated 0 times
[
4]
[
0]
/ answers: 1 / hits: 1983
/ 2 Years ago, sun, august 28, 2022, 10:00:18
So I have my program and I cannot figure out how to make the program loop back to the start. I have more of a program however this is the part where I would like the program to restart if I picked yes exit 0 and exit 1 are placeholders at the moment since I do not know how to make it loop. Thank you for your help in advance.
echo "Is that all sir? (Yes/No)"
if [ $word = "Yes" ]
then exit 0
if [ $word = "No" ]
then exit 1
fi
More From » command-line