|
|||||||
| Forums | Search Forums | Register | Forum Rules | Man Pages | Albums | FAQ | Members | Calendar | Search | Today's Posts | Mark Forums Read |
| Homework & Coursework Questions Students must use and complete the template provided. If you don't, your post may be deleted! Special homework rules apply here. |
|
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
repeating test several times
echo "Enter Number of times u want this to be run"
read RUN for i in {1..$RUN} do echo "i am going to market" done now the issue is that when i run this script it ask me "Enter Number of times u want this to be run" and then i put the value ,say i put 10, but when the script runs it gives this out:i am going to market but it should give this output : i am going to market i am going to market i am going to market like this 10 times.....can anyone suggest where i am wrong and anyother way to solve this issue. |
| Sponsored Links | ||
|
|
#2
|
||||
|
||||
|
Do not post classroom or homework problems in the main forums. Homework and coursework questions can only be posted in this forum under special homework rules.
Please review the rules, which you agreed to when you registered, if you have not already done so. More-than-likely, posting homework in the main forums has resulting in a forum infraction. If you did not post homework, please explain the company you work for and the nature of the problem you are working on. If you did post homework in the main forums, please review the guidelines for posting homework and repost. Thank You. The UNIX and Linux Forums. |
| Sponsored Links | ||
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Problem with implementing the times() function in C (struct tms times return zero/negative values) | g_p | Programming | 1 | 10-31-2011 04:04 PM |
| How to check weather a string is like test* or test* ot *test* in if condition | johnjerome | Shell Programming and Scripting | 5 | 02-18-2010 05:38 AM |
| Test on string containing spacewhile test 1 -eq 1 do read a $a if test $a = quitC then break fi d | Max89 | Shell Programming and Scripting | 1 | 11-25-2009 01:08 PM |
| how would you know your server was rebooted 3 times or 5 times | kenshinhimura | AIX | 3 | 01-16-2009 08:52 AM |
|
|