Remove the First Capital Letter from Each Element

  • + 0 comments
    readarray -t arr
    trans_arr="${arr[@]/#[A-Z]/.}"
    echo "${trans_arr[@]}"