8 filename="${1:-example.txt}"
17 for (( d=1; d<=80; d++ )); do
18 start_fish_count=${#fish[@]}
19 for (( i=0; i<$start_fish_count; i++ )); do
20 if [ ${fish[$i]} -eq 0 ]; then
24 ((fish[$i]-=1)) || fish[$i]=0
29 echo "After 80 days there are ${#fish[@]} fish"