

InterviewSolution
Saved Bookmarks
1. |
Solve : how to remove varible from a list? |
Answer» hey I am doing something LIKE following:
Solve teh problem of by using following : Code: [Select]var1=$(echo $var1 | sed "s/$var//") But still How can i select the random varible from the list Question is there. Please suggest.make an array of variable in list , FIND the index of that array . Do x=rand()%index to GENERATE the random number and with that random number go to the array element : array This will give you the random selection for each time. Thanks RG |
|