Quote:
Originally posted by WhiteTree
I also forgot to tell you that we are supposed to start the script with: #!/bin/sh.
|
Hmmm ... Usually the # character indicates the remainder of a line is a comment, except when it's the first character on the first line and is followed by an exclamation mark. In that case, the kernel uses the remainder of the line as the interpreter (and any flags) to run. #!/path/to/bash is a shorthand I've used that you should replace with the path to your bash interpreter.
If you're on linux /bin/sh is usually linked to to bash, but if you actually have to use the Bourne shell (/bin/sh) then you won't have arrays and you'll have to find another solution.