Bash Script Binary Search
A binary search needs the max and min boundaries of the search. Starting at zero is great, but your last variable is a little off. Try: last=$(($#students[@]} – 1)) the – 1 will put your array at the correct size (arrays start at zero and go to one less of their size.) After that try … Read more