I am a new learner to Bash Shell script and I would like to writing a script to to repeat my script.
This mean I would like to have multiple same of result after running the .sh.
#######
TIMES_NO=0
echo -n "Please enter the number for times to repeat ?"
read TIMES_NO
######
When I start the program, it will prompt for enter the number for the TIMES_NO, after I enter a number, how to writing script to loop all my script inside the sh for the multiple times ?
$TIMES_NO
I have already searching for 10+ hours but failed to do...
Would you kindly help ?
many many thanks
Dear Rudic, thank you for your quick help, but I am not success to write correct script to do this, would you kindly take a look ?
My script in screen capture
www pbasehk com/stephen/temp/screen1
www pbasehk com/stephen/temp/screen2
Result
www pbasehk com/stephen/temp/result
thanks again for your help
I am so sorry the forum rules not allow to post the URL from my account..
I have to writing a script, when run it, prompt for width and height value, enter both value and then used to created a drawing pattern on the screen...
my current script is actually copy from another sample used create a triangle pattern...
I modify the value and hopes it can being a rectangle....
on your mentions script, it will execute 1 time and show one row on the screen, so I hopes to made it become multiple....thanks
---------- Post updated at 11:04 AM ---------- Previous update was at 11:02 AM ----------
or do you have any suggestion I can write a script to do that ?
So - this is exactly what is to be expected, and what you said you need. What do you think is missing? Please post details: code, expected output, description of problems.
yes, after mixed all your answer and I study, modify again, it's finally done !
would like to say thank you again to Rudic, Sea and Aia !
I am feeling warm for all your help