Assignment 8
- Write a script called loop1 that will loop through the arguments and display each
preceeded by a number starting at one and increments each time. Use the $@ variable. For example:
$ loop1 dog cat mouse 1: dog 2: cat 3: mouse
- Repeat question 1 using the automatic arguments feature of the for loop. Call this script loop2.
- Write a script called loop3 that will start with 1 and multiply it by 2 until the value is greater than 1000. Use a while loop.
- Repeat question 3 using an until loop. Call this script loop4.