Remove the First Capital Letter from Each Element

Sort by

recency

|

175 Discussions

|

  • + 0 comments

    readarray -t a arr={arr[@]}"

  • + 0 comments

    This function modifies a list by converting the first capital letter of each element to lowercase. It ensures uniform formatting while preserving the rest of the string. Ekbet16

  • + 0 comments

    Maybe it is simplier

    `

    readarray arr for i in (echo res | tr "\n" " " done

    `

  • + 0 comments
    array=(`cat`)
    
    new_array=( ${array[@]/[A-Z]/"."})
    
    echo ${new_array[@]}
    
  • + 0 comments
    readarray -t arr
    trans_arr="${arr[@]/#[A-Z]/.}"
    echo "${trans_arr[@]}"