#!/usr/bin/env bash inputs=("$@") length=${#inputs[@]} last_index=$((length - 1)) # Loop through the 'inputs' array, excluding the last element for ((i=0; i